=begin
Script Name: Level up HP/MP reset
Author: Tajiin
Release Date: 12/06/2013 | mm/dd/yyyy
Version: 1.2
Version Date: 05/10/2015 | mm/dd/yyyy
Description:
With this script you get your full HP and MP when you rising a level
up
What can i change in the EDIT-Area:
Switch_ID: Here you can set a switch with that you can turn the script on and off
Have Fun
SORRY FOR MY BAD ENGLISH SKILLS
=end
module LevelUp
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
# EDIT-Area
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Switch_ID = 10
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
# EDIT-Area
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
end
class Game_Actor < Game_Battler
def level_up
@level += 1
self.hp = self.mhp if $game_switches[LevelUp::Switch_ID] == true
self.mp = self.mhp if $game_switches[LevelUp::Switch_ID] == true
self.class.learnings.each do |learning|
learn_skill(learning.skill_id) if learning.level == @level
end
end
end