本帖最后由 taroxd 于 2014-6-16 13:52 编辑
class Game_Actor alias add_new_state_no_revive add_new_state def add_new_state(state_id) # ↓ 仅对3,4,5号角色生效 if [3,4,5].include?(id) && state_id == death_state_id && !@died_once revive @died_once = true refresh else add_new_state_no_revive(state_id) end end end
class Game_Actor
alias add_new_state_no_revive add_new_state
def add_new_state(state_id)
# ↓ 仅对3,4,5号角色生效
if [3,4,5].include?(id) && state_id == death_state_id && !@died_once
revive
@died_once = true
refresh
else
add_new_state_no_revive(state_id)
end
end
end
未测试。另外我没有很明白楼主在什么条件下可以复活,目前的设定是“角色一生只能复活一次” |