[Solved] Recovery on level up

Hello.

I've been searching for a script for a while now that recovers your character HP and MP upon leveling up, however all I found were MV plugins really. I tried to see whether it was doable without scripting ( like via common events, but I couldn't really think of how to go about it, since conditional branches don't have anything along the lines of "If [character] level [increases], then y happens".

Does a script exist that does this or is is doable without scripts?

Thank you in advance.
'Scripts' is where people who have written completed scripts they want to share with others can post them.

Moved to: RGSS3 Script Requests
I thought so, but I wasn't 100% sure. Sorry about that and thank you for moving it where it should be.
levelup.PNG

This could be a possible Solution for you, or atleast something to get you started.

EDIT: I have a big mistake in the Picture i will reupload it!!!!
Edit2: I cant i forgot to safe the code =).
You need one Variable for each actor: Actor001 Prior Variable
in the Block for Nathalie i used Erics Variable for Prior Level, i should have used an extra one for Nathalie. Iam sure you can fix that yourself.
Edit3: This sign != means: Not equal
so if players "current level" isnt same as the level safed in the "prior level" variable for the actor, than its hp and mp are restored and the variables changed accordingly.
Quick google search found this back in 2012.

https://forums.rpgmakerweb.com/index.php?threads/how-to-recover-hp-and-mp-when-you-level-up.2698/
Thank you, both of you. I decided to go with the script you linked, @Roninator2 but I appreciate that you went out of your way to make that common event as well, @Bex

All is good now and the project may continue. I appreciate your times. 👋
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/solved-recovery-on-level-up.104986/