How to set minimum MP of a single character, and how to set Initial MP of all characters

Greetings,

I realise that I have an unresolved issue on this forum already, but because this issue is of a slightly different nature, I feel as though it may have warranted a new thread. Feel free to correct me if I am incorrect.

Anyway, In my project I want to give characters unique and distinctive stats, abilities, etc. In my project, I am intending for the default value for the MP bar to be 0, but for certain characters the minimum can be something higher, like 3, so that even when completely drained of MP they will always have that amount remaining.

I'm not sure if formulas can be applied to actors/classes in the database which is the reason why I ask this question, I also wouldn't really know how to go about it anyway so I'm hoping someone would be able to offer some insight.

Thank you.
Have a common event during battle check each moment that if those characters are below that amount of MP, to fill their MP up to 3 MP. That, or you're going to need a plugin.
Have a common event during battle check each moment that if those characters are below that amount of MP, to fill their MP up to 3 MP.

That probably sounds like the easiest approach I suppose, although I guess it would mean doing that for EVERY battle that takes place.. How would I go about doing this?

That, or you're going to need a plugin.

I have no idea what kind of plugin would even be able to accomplish something like this lol, preferrably I'd like to have some kind of condition within the Note box of the respective actor/character or something that would reset the MP rate back to the minimum after each battle but I'm not sure what plugin would be able to do this
That probably sounds like the easiest approach I suppose, although I guess it would mean doing that for EVERY battle that takes place.. How would I go about doing this?
Yeah, it's going to need a page on every encounter, but it's nothing more than a simple copy/paste job to each of them.
Yeah, it's going to need a page on every encounter, but it's nothing more than a simple copy/paste job to each of them.

Sorry, I meant what code should I use lol I only just started using this program last week!
To have it happen at the end of each turn, make a page under a Troops in Battle Events, set conditions to Turn End (span: turn). Then, add an event command that calls upon the Common Event that you use to check and fill up to the minimum amount of MP. If you don't know how to set up this check, I'd suggest to look up a variables basics tutorial to learn how to work with variables (tutorials are on this site and Youtube), because it's an important skill that'll vastly improve your RPG Making when you know how to do it.
Make sure to thoroughly test it in just that encounter to see if it actually works the way you want, before you copy/paste it to all the other encounters.
Hey thanks for the advice! Sorry for the delay in response, things have been fairly busy back here of late.. Slowly but surely I've been playing around with this system and I think I'm getting the hang of this, but I think I might need to create a new thread because I now have difficulty with the string of code I'm using for this particular task, which really *should* work in theory, and it is, but it's also freezing the game on the battle screen so that neither actors nor enemies can take their turns.
This will save you the trouble of copy-pasting into every single enemy troop: http://yanfly.moe/2015/10/18/yep-15-base-troop-events/

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-minimum-mp-of-a-single-character-and-how-to-set-initial-mp-of-all-characters.97431/