Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ** DKP Escape Snippet
- #------------------------------------------------------------------------------
- # This window is used to select whether to fight or escape on the battle
- # screen.
- #==============================================================================
- module Escape_config
- # Use the script call $Can_Escape = true/false to change in game
- # true allows escape. false removes escape from the menu.
- # Default setting for escape.
- $Can_Escape = true
- #===============================================================================
- # Config End ===================================================================
- #===============================================================================
- end
- class Window_PartyCommand < Window_Command
- include Escape_config
- def make_command_list
- add_command(Vocab::fight, :fight)
- if ($Can_Escape) == true
- add_command(Vocab::escape, :escape, BattleManager.can_escape?)
- end
- if ($Can_Escape) == false
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement