neonblack

Switch Dash v1.0

Dec 12th, 2015
121
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## v1.0a - Created by Neon Black at request of Aaron
  2. ## Free for commercial and non-commercial use with thanks or credit
  3.  
  4. class Game_Player < Game_Character
  5.   ## Switch to enable or disable dash.
  6.   ## Switch must be turned on in order to dash.
  7.   @@dash_switch_num = 12
  8.  
  9.   alias_method "dash_11212015", "dash?"
  10.   def dash?
  11.     return dash_11212015 && $game_switches[@@dash_switch_num]
  12.   end
  13. end
RAW Paste Data