本帖最后由 lirn 于 2014-6-15 01:14 编辑
taroxd 发表于 2014-6-14 12:40
class Scene_Battle < Scene_Base
def add_battlelog(text)
@log_window.add_text(text)
似乎出错了呢
没事了,改好了。
另外有个问题,我使用的是后知后觉的横版,能不能改改像使用技能回复那样出现数字?由于不知道伤害跟回复是不是一样,所以只截取一段看看是不是在这里改。
#-------------------------------------------------------------------------- # ● 显示回避 (追加定义) #-------------------------------------------------------------------------- alias hzhj_old_display_evasion_for_display_damage_wnd_btlog display_evasion def display_evasion(target, item) target.hzhj_damage = [:eva, :evasion, false] hzhj_old_display_evasion_for_display_damage_wnd_btlog(target, item) end #-------------------------------------------------------------------------- # ● 显示 HP 伤害 (追加定义) #-------------------------------------------------------------------------- alias hzhj_old_display_hp_damage_for_display_damage_wnd_btlog display_hp_damage def display_hp_damage(target, item) return if target.result.hp_damage == 0 && item && !item.damage.to_hp? value = target.result.hp_damage critical = target.result.critical target.hzhj_damage = [:hp, value, critical] hzhj_old_display_hp_damage_for_display_damage_wnd_btlog(target, item) end #-------------------------------------------------------------------------- # ● 显示 MP 伤害 (追加定义) #-------------------------------------------------------------------------- alias hzhj_old_display_mp_damage_for_display_damage_wnd_btlog display_mp_damage def display_mp_damage(target, item) return if target.dead? || target.result.mp_damage == 0 value = target.result.mp_damage critical = target.result.critical target.hzhj_damage = [:mp, value, critical] hzhj_old_display_mp_damage_for_display_damage_wnd_btlog(target, item) end #-------------------------------------------------------------------------- # ● 显示 TP 伤害 (追加定义) #-------------------------------------------------------------------------- alias hzhj_old_display_tp_damage_for_display_damage_wnd_btlog display_tp_damage def display_tp_damage(target, item) return if target.dead? || target.result.tp_damage == 0 value = target.result.tp_damage critical = target.result.critical target.hzhj_damage = [:tp, value, critical] hzhj_old_display_tp_damage_for_display_damage_wnd_btlog(target, item) end end
#--------------------------------------------------------------------------
# ● 显示回避 (追加定义)
#--------------------------------------------------------------------------
alias hzhj_old_display_evasion_for_display_damage_wnd_btlog display_evasion
def display_evasion(target, item)
target.hzhj_damage = [:eva, :evasion, false]
hzhj_old_display_evasion_for_display_damage_wnd_btlog(target, item)
end
#--------------------------------------------------------------------------
# ● 显示 HP 伤害 (追加定义)
#--------------------------------------------------------------------------
alias hzhj_old_display_hp_damage_for_display_damage_wnd_btlog display_hp_damage
def display_hp_damage(target, item)
return if target.result.hp_damage == 0 && item && !item.damage.to_hp?
value = target.result.hp_damage
critical = target.result.critical
target.hzhj_damage = [:hp, value, critical]
hzhj_old_display_hp_damage_for_display_damage_wnd_btlog(target, item)
end
#--------------------------------------------------------------------------
# ● 显示 MP 伤害 (追加定义)
#--------------------------------------------------------------------------
alias hzhj_old_display_mp_damage_for_display_damage_wnd_btlog display_mp_damage
def display_mp_damage(target, item)
return if target.dead? || target.result.mp_damage == 0
value = target.result.mp_damage
critical = target.result.critical
target.hzhj_damage = [:mp, value, critical]
hzhj_old_display_mp_damage_for_display_damage_wnd_btlog(target, item)
end
#--------------------------------------------------------------------------
# ● 显示 TP 伤害 (追加定义)
#--------------------------------------------------------------------------
alias hzhj_old_display_tp_damage_for_display_damage_wnd_btlog display_tp_damage
def display_tp_damage(target, item)
return if target.dead? || target.result.tp_damage == 0
value = target.result.tp_damage
critical = target.result.critical
target.hzhj_damage = [:tp, value, critical]
hzhj_old_display_tp_damage_for_display_damage_wnd_btlog(target, item)
end
end
|