TheoAllen

Theo - On Battle Start Recover

Sep 11th, 2013
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.87 KB | None | 0 0
  1. # =============================================================================
  2. # TheoAllen - On Battle Start Recover
  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_BSStartRecover] = true
  8. # =============================================================================
  9. # CHANGE LOGS:
  10. # -----------------------------------------------------------------------------
  11. # 2013.08.22 - Finished script
  12. # =============================================================================
  13. =begin
  14.  
  15.   Perkenelan :
  16.   Script ini ngebikin actor kamu setiap kali masuk battle bakal recover.
  17.  
  18.   Cara penggunaan :
  19.   Pasang dibawah material namun diatas main
  20.   Edit konfigurasinya
  21.  
  22.   Terms of use :
  23.   Ini cuman snippet. Credit ato ngga ya terserah situ. Kalian juga bebas mo
  24.   ngedit, ato dipake komersil.
  25.  
  26. =end
  27. # =============================================================================
  28. # Konfigurasi :
  29. # =============================================================================
  30. module THEO
  31.   module OnBs_Start
  32.    
  33.     ClearStates = true  # Ilangin states
  34.     RecoverHP   = true  # Balikin HP ke maksimal HP
  35.     RecoverMP   = true  # Balikin MP ke maksimal MP
  36.    
  37.   end
  38. end
  39. # =============================================================================
  40. # Akhir dari konfigurasi
  41. # =============================================================================
  42. class Game_Actor < Game_Battler
  43.  
  44.   alias theo_on_bs_start_recover on_battle_start
  45.   def on_battle_start
  46.     theo_on_bs_start_recover
  47.     clear_states if THEO::OnBs_Start::ClearStates
  48.     self.hp = mhp if THEO::OnBs_Start::RecoverHP
  49.     self.mp = mmp if THEO::OnBs_Start::RecoverMP
  50.   end
  51.  
  52. end
Advertisement
Add Comment
Please, Sign In to add comment