The pics attached to this post are the default battle events pages I am currently using. This is accompanied by Yanfly's BaseTroopEvents plugin. What I'm trying to do is write a script that runs whenever a specific actor's MP reaches below a certain point, and once that point has been reached, a specific number is set. This effectively would functionally operate in the same way that an increased minimum amount would, but instead of 0, in this instance it is three.
I can't seem to get it running for more than one turn though - no matter how much I end up messing around with it it never functions as properly intended, either freezing the battle window into a loop so that nobody can take their turn, or only works for the very first turn and then subsides again. What should I be rectifying here and what am I doing wrong? Thank you.

I can't seem to get it running for more than one turn though - no matter how much I end up messing around with it it never functions as properly intended, either freezing the battle window into a loop so that nobody can take their turn, or only works for the very first turn and then subsides again. What should I be rectifying here and what am I doing wrong? Thank you.
