#============================================================================== # # ▼ Gamesfreak13563 - Stop State Removal on Death # -- Last Updated: 2012.4.29 # #============================================================================== # ▼ Introduction # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # This script allows you to set states that won't disappear upon actor death. # The states will act as usual when the actor is dead, including counting down. # #============================================================================== #============================================================================== # ■ Options #============================================================================== module GF module STOP_STATES #State IDs that you would like to persist through death. EXCLUDED_STATES = [3,5] end #STOP_STATES end #GF #============================================================================== # ▼ Do not edit past this point. #============================================================================== #========================================================================== # ■ Game_BattlerBase #========================================================================== class Game_BattlerBase def clear_states_GF for state in $data_states next if state.nil? erase_state(state.id) unless GF::STOP_STATES::EXCLUDED_STATES.include?(state.id) end end end #========================================================================== # ■ Game_Battler #========================================================================== class Game_Battler < Game_BattlerBase def die @hp = 0 clear_states_GF clear_buffs end end