#--------------------------------------------------------------------------
# ● 檢查連續傷害 (地圖用)
#--------------------------------------------------------------------------
def check_map_slip_damage
for actor in @actors
if actor.hp > 0 and actor.slip_damage?
actor.hp -= $game_variables[自己填]
if actor.hp == 0
$game_system.se_play($data_system.actor_collapse_se)
end
$game_screen.start_flash(Color.new(255,0,0,128), 4)
$game_temp.gameover = $game_party.all_dead?
end
end
end作者: 3535 时间: 2007-6-18 21:27
Game_Player
#--------------------------------------------------------------------------
# ● 增加步數
#--------------------------------------------------------------------------
def increase_steps
super
# 不是強制移動路線的場合
unless @move_route_forcing
# 增加步數
$game_party.increase_steps
# 步數是偶數的情況下
if $game_party.steps % 10 == 0
# 檢查連續傷害
$game_party.check_map_slip_damage
end
end
end [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~作者: 大米稀饭 时间: 2007-6-18 21:57
提示: 作者被禁止或删除 内容自动屏蔽