Animations or skills being used mid-battle dialogue event?

Hi all. I have a boss fight where, when the boss hits 50% HP, the boss is supposed to talk to the party and then mind control one of party members (via a permanent charm effect - not actually bringing them over to their side of the field or anything too elaborate) halfway through the battle.

However, I can't for the life of me get the boss to cast the mind control spell and then have another dialogue scene continue with the party reacting to it. The spell won't cast until after all dialogue is completed, even if I have the dialogue after the spell in the event order.

Things I've tried:

  • The basic Event Command for Force Action. It works, but not until all dialogue is finished, as stated above.
  • The "Show Animation" and "Show Battle Animation" event commands. These don't play period, before or after.
  • A script call for $gameActors.actor(x).startAnimation(y). Again, nothing.
  • Setting a switch to activate after the spell is cast, and then having a new troop event page with the following dialogue that reacts to that switch being on. I thought for sure this would work but it still plays the dialogue of the second page before the spell from the first page goes off!
  • Setting a common event that activates the switch to the mind control spell itself. It still plays the "react" dialogue before the cast!!
Does anyone have any ideas as to a workaround? Is there a way to set it so that the status effect itself activates the switch, so there's no way for that second event page to process until the spell goes off?

Edit: SOLVED, via VisuStella Skills and States core. I added this to the state's notetags:

<JS On Add State>
$gameTemp.reserveCommonEvent(X)
</JS On Add State>

With "X" being the common event that activates the switch that activates the second part of the dialogue. Went off without a hitch. I feel like there should be an easier way to do this though so if anyone has any input regardless I'd appreciate it, but if not, hopefully this helps anyone who has had similar issues.

Original thread: https://forums.rpgmakerweb.com/threads/animations-or-skills-being-used-mid-battle-dialogue-event.151467/