以下引用cftx于2007-8-3 19:25:11的发言:
我知道,没什么问题,我的游戏里就有3个不同的持续伤害,还有持续恢复...........
唉。。。算了,详细给你说一下吧
持续伤害的处理位于Game_Party(平时行走时造成伤害)和Game_Battler 3,分别修改这两处即可
以game_party为例,搜索slip_damage找到以下内容
#--------------------------------------------------------------------------
# ● 检查连续伤害 (地图用)
#--------------------------------------------------------------------------
def check_map_slip_damage
for actor in @actors
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
[本贴由作者于 2007-8-3 19:28:46 最后编辑]
| 欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |