文雅夕露 发表于 2018-1-4 20:10 因為這個腳本是class裏面的東西···我這裡沒vx所以不清楚你的腳本在哪個類裏 在main上面加
就行了 |
|
本帖最后由 魔法丶小肉包 于 2018-1-4 22:20 编辑 [pre lang="ruby"]class Game_Party def on_player_walk @a ||= 0 @a += 1 for actor in members if actor.slip_damage? actor.hp -= 1 if actor.hp > 1 && @a == 10 # 持续伤害 $game_map.screen.start_flash(Color.new(255,0,0,64), 4) if @a == 10 end if actor.auto_hp_recover and actor.hp > 0 and @a == 10 actor.hp += 1 # 体力自动回复 end end if @a == 10 @a = 0 end end end[/pre] |