States that drain MP?

Hello,

I'm working on a few different states that actors can self-inflict. The states grant a boost of some kind but steadily drain MP while they're "turned on."

Is there any way to make these states vanish if the actor has no more MP to drain? I assume there might be some notetags that could do this?

Thank you!
Notetags in itself have absolutely no functions - they are only used to give data and commands to plugins that check for them.


you could theoretically make a parallel process checking for MP=0 on all actors and remove the MP-costing states when that happens, but that would be a lot of work depending on the number of actors and states


So a plugin for that function would be better - however I don't know if such a plugin exists yet.
Yeah, i was wondering if someone had made such a plugin.

Not every character has these abilities, but i suppose there might be an event that could do that... I might make it a battle event, since the states dont matter out of battle.

Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/states-that-drain-mp.48844/