#-------------------------------------------------------------------------- # * 主角前進一步時的進程處理 #--------------------------------------------------------------------- ...
文雅夕露 发表于 2018-1-4 20:10 不知这是什么情况...
查看全部评分
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 endend
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
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-22 00:56
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.