Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. =begin
  2.  
  3.   Script Name: Level up HP/MP reset
  4.   Author: Tajiin
  5.   Release Date: 12/06/2013 | mm/dd/yyyy
  6.  
  7.   Version: 1.2
  8.   Version Date: 05/10/2015 | mm/dd/yyyy
  9.  
  10.   Description:
  11.     With this script you get your full HP and MP when you rising a level
  12.     up
  13.    
  14.   What can i change in the EDIT-Area:
  15.     Switch_ID: Here you can set a switch with that you can turn the script on and off
  16.    
  17.   Have Fun
  18.  
  19.  
  20.   SORRY FOR MY BAD ENGLISH SKILLS
  21.    
  22. =end
  23. module LevelUp
  24.   #=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
  25.   #  EDIT-Area
  26.   #=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
  27.  
  28.   Switch_ID = 10
  29.  
  30.   #=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
  31.   #  EDIT-Area
  32.   #=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
  33. end
  34. class Game_Actor < Game_Battler
  35.   def level_up
  36.     @level += 1
  37.     self.hp = self.mhp if $game_switches[LevelUp::Switch_ID] == true
  38.     self.mp = self.mhp if $game_switches[LevelUp::Switch_ID] == true
  39.     self.class.learnings.each do |learning|
  40.       learn_skill(learning.skill_id) if learning.level == @level
  41.     end
  42.   end
  43. end