Advertisement
kirinelf

Ao no Kiseki CBS 4

Apr 2nd, 2012
1,119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.46 KB | None | 0 0
  1. #==============================================================================
  2. # ■ Ao no Kiseki Custom Battle System 13_2 Escape Command
  3. #   @version 1 12/01/27
  4. #   @author Saba Kan
  5. #   @translator kirinelf
  6. #------------------------------------------------------------------------------
  7. #  Adds the Escape command to the system.
  8. #  No configuration needed.
  9. #=========================================================================
  10. # Do not edit anything under this line unless you know what you're doing!
  11. #=========================================================================
  12.  
  13. class Scene_Battle
  14.   #--------------------------------------------------------------------------
  15.   # ● アクターコマンドウィンドウの作成
  16.   #--------------------------------------------------------------------------
  17.   alias saba_kiseki_escape_create_actor_command_window create_actor_command_window
  18.   def create_actor_command_window
  19.     saba_kiseki_escape_create_actor_command_window
  20.     @actor_command_window.set_handler(:escape, method(:command_escape))
  21.   end
  22. end
  23.  
  24. class Window_ActorCommand
  25.   #--------------------------------------------------------------------------
  26.   # ● コマンドリストの作成
  27.   #--------------------------------------------------------------------------
  28.   alias saba_kiseki_escape_make_command_list make_command_list
  29.   def make_command_list
  30.     saba_kiseki_escape_make_command_list
  31.     add_command(Vocab::escape, :escape, BattleManager.can_escape?)
  32.   end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement