赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 35025 |
最后登录 | 2017-9-29 |
在线时间 | 231 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 231 小时
- 注册时间
- 2007-12-17
- 帖子
- 541
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
在 Scene_Battle 4 的显示伤害部分设置了攻击反弹(状态18)和吸血(状态50),然后当吸血状态的角色打反弹状态的敌人时,伤害显示就不正常了,如何能让伤害先显示吸血的数字然后再显示被敌人反弹的伤害数字呢?
脚本如下:
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 5 : 显示伤害)
#--------------------------------------------------------------------------
def update_phase4_step5
# 隐藏帮助窗口
@help_window.visible = false
# 刷新状态窗口
@status_window.refresh
# 显示伤害
for target in @target_battlers
#描述反弹伤害部分
if target.state?(18)
if @active_battler.current_action.kind == 0 and target.damage != "Miss"
target.animation_id = 98
@active_battler.hp -= @active_battler.damage.to_i
@active_battler.damage_pop = true
end
end
#描述吸血部分
if (@active_battler.state?(50) and @active_battler.current_action.basic == 0 and @active_battler.current_action.kind == 0) or (@active_battler.state?(50) and @active_battler.current_action.kind == 1 and $data_skills[@active_battler.current_action.skill_id].power > 0)
for target in @target_battlers
if target.damage != nil and target.damage != "Miss"
@active_battler.hp += (target.damage*0.1).to_i
@active_battler.damage = 0 - (target.damage*0.1).to_i
@active_battler.damage_pop = true
end
end
end
if target.damage != nil
target.damage_pop = true
end
end
# 移至步骤 6
@phase4_step = 6
end
此贴于 2008-7-13 12:48:57 被版主darkten提醒,请楼主看到后对本贴做出回应。 此贴于 2008-7-16 12:31:35 被版主darkten提醒,请楼主看到后对本贴做出回应。 版务信息:版主帮忙结贴~ |
|