Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- # dekitarpg.wordpress.com
- #===============================================================================
- module Removal_Thing
- #===============================================================================
- #-----------------------------------------------------------------------------
- # State ID to remove at end of turns
- #-----------------------------------------------------------------------------
- State_To_Remove = [12,13,14]
- #-----------------------------------------------------------------------------
- # Item that is required to remove state ID.
- #-----------------------------------------------------------------------------
- Item_That_Removes = 10
- #-----------------------------------------------------------------------------
- #
- #-----------------------------------------------------------------------------
- end
- #===============================================================================
- class Game_Battler < Game_BattlerBase
- #===============================================================================
- #-----------------------------------------------------------------------------
- #
- #-----------------------------------------------------------------------------
- alias :rem_state_if_key_item :update_state_turns
- #-----------------------------------------------------------------------------
- #
- #-----------------------------------------------------------------------------
- def update_state_turns
- rem_state_if_key_item
- states.each do |state|
- a = Removal_Thing::State_To_Remove
- b = $game_party.has_item?($data_items[Removal_Thing::Item_That_Removes])
- remove_state(state.id) if a.include?(state.id) && b && self.is_a?(Game_Actor)
- end
- end
- #-----------------------------------------------------------------------------
- #
- #-----------------------------------------------------------------------------
- end
- #===============================================================================
- # dekitarpg.wordpress.com
- #===============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement