MV Is there a way to limit an actor from spending MP that isn't sealing all skills?

Hello all,

In my game I have a Tactics Menu common event that allows you to set auto battle "conditions" for party members, those being to make them follow orders, fight spending MP, or fight spending no MP. Each choice sets a state with the auto battle flag, and the "no MP" one also has a "seal skill" flag.

This was working perfectly until I went to the menu and tried to heal a party member outside of combat, and found that my healer's skills were sealed due to having the "no MP" flag set. Changing the tactic to "follow orders" obviously fixed it, but I don't want to make my players swap out of "no MP" mode every single time they want to heal out of combat.

Additionally, I recently made some changes and added numerous skills that don't cost MP, but that obviously don't get used during "no MP" auto battle because what that state really means is "no skills."

So I'm asking here if anyone has a plugin that allows you to maybe flag a state with "don't spend MP during combat" or something along those lines. Or, a scripting solution would surely work as well. I could have just run a conditional in my Tactics Menu to swap in the "no MP" state for when combat begins, but that won't help me with enabling the 0 MP cost skills during "no MP" tactics mode.

Thank you!
Yanfly has an Actor Auto Battle A.I. plugin that allows you to program how Auto Battle uses skills.

You could make your state that seals skills be a passive state with the condition of being in battle, so it has no effect when you want to heal outside of battle.

You can make your MP-costing skills and your free skills be different skill types so you're only sealing the type that costs MP.
Yanfly has an Actor Auto Battle A.I. plugin that allows you to program how Auto Battle uses skills.

You could make your state that seals skills be a passive state with the condition of being in battle, so it has no effect when you want to heal outside of battle.

You can make your MP-costing skills and your free skills be different skill types so you're only sealing the type that costs MP.
Hey Turan, thanks for the help. I’m not sure why I was so stumped on this one—I made the “no MP” state apply a state that actually sealed skills upon entering combat or changing tactics mid combat. It gets removed at the end of combat. Works like a charm.
@fablegamer Not sure if that applies here, but normally states get removed upon death. If that would turn out to be an issue you may want to make sure the state is reapplied upon revive or at the end of each turn, or not removed in the first place (through plugins).
@fablegamer Not sure if that applies here, but normally states get removed upon death. If that would turn out to be an issue you may want to make sure the state is reapplied upon revive or at the end of each turn, or not removed in the first place (through plugins).

Hey, thank you so much! Yanfly has a notetag in one of their plugins to set "bypass death removal" that I had forgot to set for a number of my game states. Saved me a lot of trouble there!

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-limit-an-actor-from-spending-mp-that-isnt-sealing-all-skills.173040/