"Semi-Max" HP and MP stats

So, for a game I'm working on, I was planning on adding a system to make characters sorta wear down a bit between fights.

I was gonna add two new stats: Body and Mind. By default, your Body stat and your Mind stat would equal your max HP and max MP respectively... but some things would decrease these values. Certain "grievous injuries" from enemies could lower your Body, and I was thinking healing abilities would always cost at least a bit of Mind.

Then what'd happen is, your HP value can't go higher than your Body stat, and your MP can't go higher than your Mind stat. It'd be sorta like actual Max HP/ Max MP loss, except not permanent... certain items and NPCs (and even some skills) could restore these values.

As an aside, I'm using the Yanfly plugins, so I was hoping I could color code damage to these values. I figure abilities that reduce Body would simply reduce Max HP instead when used on an enemy.

I just... don't really know how to do this?
It doesn't quite do exactly what you're asking for but my Health plugin was designed to clever things with HP and to a lesser extent, MP. Now that I think about it, I'm pretty sure that what you want would be a easy addition to my plugin if you are interested in using it.
Hm! That might be relevant for another part of my game! I just have to ask if your Frog Core is compatible with Yanfly

I did manage to get the basics of the Body and Mind stats down, though, after I started to really figure out how plugins work. I'm still a bit stuck but now it's more in how to display it, rather than how to make it work.

Original thread: https://forums.rpgmakerweb.com/threads/semi-max-hp-and-mp-stats.96766/