Help changing mana points to a different stat

So essentially I'm making a game where a very core mechanic is "morale" which I want to have multiple effects, and thought one way to do this would be to rework how mana points currently works and go from there.

I want it to be stat that can be reduced from things like specific enemy attacks, taking damage, party members dying, etc. It can be increased by things like winning battles, or certain moves. Morale's effects are that certain skills can't be used without a certain amount of morale (however using said skills doesn't necessarily reduce morale), it increase hit rate, dodge rate, and low amounts of it can cause things like your party members to flee. (I'm sorry, very complex)

The last thing that is important is I want a variable that can be changed through in game events that essentially effects how easy it is to gain/lose the stat (for example, +5% morale means you have a 5% increase to morale gain, and that morale losses aren't as apparent) so that the story effects combat performance. Any help on how to make any part of this core mechanic would be greatly appreciated!
You can measure your MP with a parallax event that keeps track of it into a variable, than have your mechanic use a common event that resets a player stat to that variable you assigned and quickly gives/uses/consumes an item that has that effect (increase hit rate, dodge rate, ect).
That's a good idea, I'll try it out and see if it works.

Original thread: https://forums.rpgmakerweb.com/threads/help-changing-mana-points-to-a-different-stat.120658/