Skill that Increases Max Stats

Hello to all,

I've been working on trying to adapt the Skill system on Yakuza 0, which have you buy skills and Health upgrades with the Money you earn in battles.

I easily achieved that with Yanfly's Skill Learn System and Class Change.

But now what i'm trying to accomplish, is a skill that when bought it'll increase your Max HP permanently but only once.
But i have no idea how to make it so, if it even is possible.
Any help is welcome. 😅
So you want your Max HP to increase just from buying the skill or buying the skill and using it?
Since you're already using Yanfly... What about a passive state that simply adds to it? If its by an exact ammount rather than percentage though there is probably an easy way to do this by Lunatic Mode (Javascript driven notetags), but I wouldn't be the one to ask about that.

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-increases-max-stats.106859/