TheoAllen

Theo - Global Disable Dash

Nov 16th, 2013
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.34 KB | None | 0 0
  1. # =============================================================================
  2. # TheoAllen - Global Disable Dash
  3. # Version : 1.0
  4. # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
  5. # (This script documentation is written in informal indonesian language)
  6. # =============================================================================
  7. ($imported ||= {})[:Theo_GDash] = true
  8. # =============================================================================
  9. # Change Logs:
  10. # -----------------------------------------------------------------------------
  11. # 2013.11.15 - Finished script
  12. # =============================================================================
  13. =begin
  14.  
  15.   Script ini cuman nambahin opsi kalau kamu bisa nge-disable dash dimana aja
  16.   tidak sebatas dari map properties
  17.  
  18.   Caranya tinggal make script call
  19.   $game_system.dash = true
  20.   $game_system.dash = false
  21.  
  22. =end
  23. # =============================================================================
  24. # Tidak ada konfigurasi
  25. # =============================================================================
  26. class Game_System
  27.   attr_accessor :dash
  28.   alias theo_gdash_init initialize
  29.   def initialize
  30.     theo_gdash_init
  31.     @dash = false
  32.   end
  33. end
  34. class Game_Player < Game_Character
  35.   alias theo_gdash? dash?
  36.   def dash?
  37.     theo_gdash? && $game_system.dash
  38.   end
  39. end
Advertisement
Add Comment
Please, Sign In to add comment