Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # TheoAllen - On Battle Start Recover
- # Version : 1.0
- # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
- # (This script documentation is written in informal indonesian language)
- # =============================================================================
- ($imported ||= {})[:Theo_BSStartRecover] = true
- # =============================================================================
- # CHANGE LOGS:
- # -----------------------------------------------------------------------------
- # 2013.08.22 - Finished script
- # =============================================================================
- =begin
- Perkenelan :
- Script ini ngebikin actor kamu setiap kali masuk battle bakal recover.
- Cara penggunaan :
- Pasang dibawah material namun diatas main
- Edit konfigurasinya
- Terms of use :
- Ini cuman snippet. Credit ato ngga ya terserah situ. Kalian juga bebas mo
- ngedit, ato dipake komersil.
- =end
- # =============================================================================
- # Konfigurasi :
- # =============================================================================
- module THEO
- module OnBs_Start
- ClearStates = true # Ilangin states
- RecoverHP = true # Balikin HP ke maksimal HP
- RecoverMP = true # Balikin MP ke maksimal MP
- end
- end
- # =============================================================================
- # Akhir dari konfigurasi
- # =============================================================================
- class Game_Actor < Game_Battler
- alias theo_on_bs_start_recover on_battle_start
- def on_battle_start
- theo_on_bs_start_recover
- clear_states if THEO::OnBs_Start::ClearStates
- self.hp = mhp if THEO::OnBs_Start::RecoverHP
- self.mp = mmp if THEO::OnBs_Start::RecoverMP
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment