Advertisement
mjshi

After Battle Events Edit

Sep 10th, 2015
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.28 KB | None | 0 0
  1. #-------------------------------------------------------------------------------
  2. # After Battle Events (Vlue) Addon by mjshi
  3. # Version 1.0
  4. # Automatically turns off switches after battle event processing
  5. #-------------------------------------------------------------------------------
  6. # Requires: After Battle Events by Vlue
  7. # Find Vlue's script here: http://pastebin.com/qH1SkL0V
  8. #-------------------------------------------------------------------------------
  9. # Usage: Put under After Battle Events.
  10. #-------------------------------------------------------------------------------
  11.  
  12. class Scene_Battle
  13.   def process_end_event
  14.     while !scene_changing?
  15.       $game_troop.interpreter.update
  16.       $game_troop.setup_battle_event
  17.       wait_for_message
  18.       wait_for_effect if $game_troop.all_dead?
  19.       process_forced_action
  20.      
  21.       $game_switches[VICTORY_EVENT_SWITCH] ? $game_switches[VICTORY_EVENT_SWITCH] = false : nil
  22.       $game_switches[ESCAPE_EVENT_SWITCH] ? $game_switches[ESCAPE_EVENT_SWITCH] = false : nil
  23.       $game_switches[ABORT_EVENT_SWITCH] ? $game_switches[ABORT_EVENT_SWITCH] = false : nil
  24.       $game_switches[DEFEAT_EVENT_SWITCH] ? $game_switches[DEFEAT_EVENT_SWITCH] = false : nil
  25.      
  26.       break unless $game_troop.interpreter.running?
  27.     end
  28.   end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement