Returns your HP and SP to max whenever you Level Up
"Heal On Level Up"
Code:
#==============================================================================
# ** Heal On Level Up
# By Ccoa
#------------------------------------------------------------------------------
# When you level up all your HP and SP will be return to max
#==============================================================================
class Game_Actor < Game_Battler
alias exp_normal exp
def exp=(exp)
@exp = [[exp, 9999999].min, 0].max
# Level up
while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0
@level += 1
# Learn skill
for j in $data_classes[@class_id].learnings
if j.level == @level
learn_skill(j.skill_id)
end
end
# heal
@hp = self.maxhp
@sp = self.maxsp
end
# Level down
while @exp < @exp_list[@level]
@level -= 1
end
# Correction if exceeding current max HP and max SP
@hp = [@hp, self.maxhp].min
@sp = [@sp, self.maxsp].min
end
end
Enjoy ^_^
Just a note...
There shouldn't be any scripting problems, I didn't make this script.
I'll be happy to help with any problems, whether I can is another matter...