Adjust MP Regen to -1 mp

I want to change the mp regeneration in the Game_Batter script. I want the mp to regenerate negative one point. I have went into the script to do just that. But if I change the - (mmp *hrg) to –(-1) and for some reason that causes everyone, including the people who does not have mp regeneration to regenerate alongside the person who has the state.  So what I am asking her is there any way I can make MP regeneration to only recover -1 to the person with the regenerate mp state? The reason why it has to be -1 is because of the battle system I want to make. So basically you only get mp by using a special that uses TP.  Once the character has MP, it will decrease by one point each turn. I have all the character with different amounts such as one character with 7 mp and another with 4 mp. So every ones mp drains differently. Once the skill that gives them the mp is use I apply a state to them to ensure that they regenerate -1 mp. So to achieve this I need to make it so the state will subtract exactly one point of from the character mp each turn when they are in this state.  Also only to the person with the state only.

I have Yanfly Engine Ace - Ace Battle Engine v1.22 as my core battle script. 
Using Yanfly Engine Ace - Lunatic States should work:

https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-states/
Or you could do it completely without scripts, because what you want is NOT a change in MP regeneration, you want your party to loose one MP per turn in battle.

The first is difficult and requires scripts - the second is extremely easy once you ignore MP regeneration values and simply set everything there to zero.

Go to database - troops

Make a troop event with the condition "Turn 1 + 1X" and the span "turn", so that it runs once per turn.

Add a command "change MP" for entire Party, decrease by 1.

Finished.

Either copy this event to all your troops, or use one of the scripts that executes the events of troop 1 in all battles/troops
Andar, that would still affect all members of the party. The op stated they don't want battlers without a certain state to lose mp.

I agree with DoubleX. Lunatic States seems to be the easiest solution if you want to use a state.

Just paste this above the part where it says "Stop editing past this point". That'd be line 188.

when /LOSE_MP[ ]([\+\-]\d+)/i self.mp += $1.to_i if $1.to_i < 0 text = sprintf(YEA::BATTLE:😛OPUP_SETTINGS[:mp_dmg], $1.to_i.abs.group) self.create_popup(text, "MP_DMG") else text = sprintf(YEA::BATTLE:😛OPUP_SETTINGS[:mp_heal], $1.to_i.abs.group) self.create_popup(text, "MP_HEAL") end # ifPut this into the state's notebox:

<begin effect: lose_mp -x><close effect: lose_mp -x>Use <begin effect: ...> if you want your hero to lose MP at the start of each turn. Use <close effect: ...> if you want them to lose MP at the end of each turn.

Replace x with your desired value. You can use +x (so that your hero gains MP) too, if you want.
OK, I didn'te read that - but unless the project has dozens of actors, it could be done with conditional branches and individual change MP commands
Thanks for the suggestion Alistair, it worked. I am going to close this topic.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/adjust-mp-regen-to-1-mp.40095/