MV Cut HP Skill Cost In Half (Yanfly Skill Core)

So with the Yanfly Skill Core plugin you can make skills that cost HP to cast. I was wondering if there was a way to create an item or skill that would have the cost halved for all skills that require HP?
Yes.

All you need to do is to get the player HP variable and use a "/ 2" in the code to have their HP halved. I never used the Yanfly plugins, but with custom code, it would be something like this.
Sure. You make a passive state.

Then, in your skills that cost HP, you'd add:
Code:
<Custom HP Cost>
cost /= user.isStateAffected(x) ? 2 : 1;
</Custom HP Cost>
where x is the ID of your passive state.

Then you can apply the passive state however you like, by learning a skill, equipping an item, whatever.
I see, thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/cut-hp-skill-cost-in-half-yanfly-skill-core.152554/