class Game_Battler < Game_BattlerBase $unre = [] def die unremove = [7,8,9] states.each do |s| if unremove.include?(s.id) $unre.push(s.id) end end @hp = 0 clear_states clear_buffs end def add_state(state_id) if state_addable?(state_id) add_new_state(state_id) unless state?(state_id) $unre.each do |id| add_new_state(id) unless state?(id) reset_state_counts(id) @result.added_states.push(id).uniq! end reset_state_counts(state_id) @result.added_states.push(state_id).uniq! end end end
魔法丶小肉包 发表于 2017-6-3 18:02
unremove设定状态ID
class Game_Battler < Game_BattlerBase
QQ截图9988888.png (6.18 KB, 下载次数: 27)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |