The name says it all. Is this done through the script editor? or the Database? I'm almost positive this can be achieved through one of those but I have been unable to find it.
How to recover HP and MP when you level up?
RPG Maker VXAce SupportYou'll have to do it in the scripts.
More specifically,
The above will also remove states. If you don't want to remove states, use this instead:
Code:
class Game_Actor < Game_Battler
alias heal_on_level_up level_up
#--------------------------------------------------------------------------
# * Level Up
#--------------------------------------------------------------------------
def level_up
heal_on_level_up
recover_all
end
end
Code:
class Game_Actor < Game_Battler
alias heal_on_level_up level_up
#--------------------------------------------------------------------------
# * Level Up
#--------------------------------------------------------------------------
def level_up
heal_on_level_up
@hp = mhp
@mp = mmp
end
end
Thanks this is just what I was looking for! Could you also tell me where in the Game Actor < Game Battler script to place this please? :huh:
You're freaking awesome.
You can just insert that scriptlet anywhere in the materials section.
Awesome thank you very much! 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-recover-hp-and-mp-when-you-level-up.2698/