标题: 脚本高人帮下忙……有关边走路边回血=v=b [打印本页] 作者: 君迁子 时间: 2008-1-27 03:46 标题: 脚本高人帮下忙……有关边走路边回血=v=b 知道应该动这里……
#--------------------------------------------------------------------------
# ● 检查连续伤害 (地图用)
#--------------------------------------------------------------------------
def check_map_slip_damage
for actor in @actors
next if actor.nil?
if actor.hp > 0 and actor.slip_damage?
actor.hp -= [actor.maxhp / 100, 1].max
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
不好意思看错了,两个都要改
def check_map_slip_damage
for actor in @actors
next if actor.nil?
if actor.hp > 0 and actor.slip_damage?
if actor.state?(26)
actor.hp += [actor.maxhp / 100, 1].max
else
actor.hp -= [actor.maxhp / 100, 1].max
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
end [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~作者: 凌冰 时间: 2008-1-27 04:03
如果运行时显示syntaxerror,说明在改过的地方地最后多了或少了个end小改一下就行作者: 君迁子 时间: 2008-1-27 04:05
可以了!万分感谢!