noelburgundy27

Heal After Battle RGSS3

May 3rd, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.71 KB | None | 0 0
  1. =begin
  2. ** Neil's Heal AFter Battle
  3.  
  4. Allows to recover to full after every battle.
  5.  
  6. Instructions:
  7.   > Insert below all other scripts and above 'main' to alias methods properly.
  8. =end
  9.  
  10. class Game_Battler < Game_BattlerBase
  11.   HEAL_AFTER_BATTLE = true
  12.  
  13.   def heal_mofo
  14.     if HEAL_AFTER_BATTLE == true
  15.       for member in $game_party.members
  16.         member.recover_all
  17.       end
  18.     end
  19.   end
  20.  
  21.   #--------------------------------------------------------------------------
  22.   # * Processing at End of Battle
  23.   #--------------------------------------------------------------------------
  24.   alias neil_battle_end on_battle_end
  25.   def on_battle_end
  26.     neil_battle_end
  27.     heal_mofo
  28.   end
  29.  
  30.  
  31. end
Advertisement
Add Comment
Please, Sign In to add comment