不知道行不行,试试吧!
#encoding:utf-8 #============================================================================== # ■ Game_Battler #------------------------------------------------------------------------------ # 处理战斗者的类。Game_Actor 和 Game_Enemy 类的父类。 #============================================================================== class Game_Battler < Game_BattlerBase #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- alias kjdh_refresh refresh def refresh kjdh_refresh if actor? && id == 1 && @hp == 0 add_state(999) end end end
#encoding:utf-8
#==============================================================================
# ■ Game_Battler
#------------------------------------------------------------------------------
# 处理战斗者的类。Game_Actor 和 Game_Enemy 类的父类。
#==============================================================================
class Game_Battler < Game_BattlerBase
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
alias kjdh_refresh refresh
def refresh
kjdh_refresh
if actor? && id == 1 && @hp == 0
add_state(999)
end
end
end
|