Advertisement
Dark_Paladin

DKP Escape Snippet

Jul 28th, 2013
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.08 KB | None | 0 0
  1. #==============================================================================
  2. # ** DKP Escape Snippet
  3. #------------------------------------------------------------------------------
  4. #  This window is used to select whether to fight or escape on the battle
  5. # screen.
  6. #==============================================================================
  7. module Escape_config
  8.   # Use the script call $Can_Escape = true/false to change in game
  9.   # true allows escape. false removes escape from the menu.
  10.   # Default setting for escape.
  11.   $Can_Escape = true
  12.  
  13.  
  14. #===============================================================================
  15. # Config End ===================================================================
  16. #===============================================================================
  17. end
  18. class Window_PartyCommand < Window_Command
  19.   include Escape_config
  20.   def make_command_list
  21.     add_command(Vocab::fight,  :fight)
  22.     if ($Can_Escape) == true
  23.     add_command(Vocab::escape, :escape, BattleManager.can_escape?)
  24.   end
  25.     if ($Can_Escape) == false
  26.   end
  27.  end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement