Trying to make an armor...

Hey all,
I'm trying to make a piece of armor that when equipped will cut the actor's max HP in half, increase MAT and MDF by half, and use HP instead of MP to cast spells. Naturally when unequipping it, HP, MAT and MDF would have to return to normal levels. Anyone know of a way to do this, either in engine or with plugins?
The cut in half isn't too tough, as you add a feature HP rate * 50% to the armor, same with the other stats. Once you unequip it, it will return to normal levels.

However, the using HP to cast spells instead or MP only when the armor is equipped will require a custom plug-in. I'll move this to plug-in requests.
HP and MP reversal can be done by two Yanfly Plugins, as seen here.
Perhaps you could make the armor add a state to the user?

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-an-armor.115770/