Time heals energy

Hi all,
I hope this is in the correct place, if not I’m sorry.

I want to change mp to energy and when the player loses energy, time heals it back up. So if they don’t have any energy left they can’t do anything before it has been healed back up.

Is that possible
rename the value in the database and give the actors an MP regeneration trait

Original thread: https://forums.rpgmakerweb.com/threads/time-heals-energy.137362/