Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-------------------------------------------------------------------------------
- # After Battle Events (Vlue) Addon by mjshi
- # Version 1.0
- # Automatically turns off switches after battle event processing
- #-------------------------------------------------------------------------------
- # Requires: After Battle Events by Vlue
- # Find Vlue's script here: http://pastebin.com/qH1SkL0V
- #-------------------------------------------------------------------------------
- # Usage: Put under After Battle Events.
- #-------------------------------------------------------------------------------
- class Scene_Battle
- def process_end_event
- while !scene_changing?
- $game_troop.interpreter.update
- $game_troop.setup_battle_event
- wait_for_message
- wait_for_effect if $game_troop.all_dead?
- process_forced_action
- $game_switches[VICTORY_EVENT_SWITCH] ? $game_switches[VICTORY_EVENT_SWITCH] = false : nil
- $game_switches[ESCAPE_EVENT_SWITCH] ? $game_switches[ESCAPE_EVENT_SWITCH] = false : nil
- $game_switches[ABORT_EVENT_SWITCH] ? $game_switches[ABORT_EVENT_SWITCH] = false : nil
- $game_switches[DEFEAT_EVENT_SWITCH] ? $game_switches[DEFEAT_EVENT_SWITCH] = false : nil
- break unless $game_troop.interpreter.running?
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement