Trouble with conditional branch Battle Events for enemy attack with two outcomes

I'm trying to set up a boss battle where on certain turns the enemy will perform a move that either mind controls an actor, causing them attack their allies (or in the case of the magic character having him heal the boss by giving him a new healing skill that targets enemies and forcing him to only use that), OR the ally resists mind control and suffers debuffs + one advantage. In the case of the magic character, his advantage would be a permanent MMP increase. I figured I could achieve this by having the boss perform specific skills that apply a 1-turn State relating to each actor then setting up conditional branch events in the Troop menu.

But every time I test out the battle, the game just gets stuck. I can attack and use skills with each actor, but when it's the enemy's turn she just sits there doing nothing. I'll admit I'm not good at creating more complex events and I can't figure out what's going wrong. Any help figuring this out, or suggestions for alternate solutions, are much appreciated!

Enemy skills:
QUESTION battle_event_mindcontrol 2.png

(Note: Life Steal is set for 50% or less health and it works, the display is just bugged)

Events:
QUESTION battle_event_mindcontrol.jpg
I might be totally off, but what kind of skill is the one that's supposed to mind control the actors? If it's a magic skill, make sure the enemy has MP to do it. This happened to me a couple of times, I was wondering why the enemy doesn't use the magic attack they were supposed to, and then realised they had MP set to 0.
I might be totally off, but what kind of skill is the one that's supposed to mind control the actors? If it's a magic skill, make sure the enemy has MP to do it. This happened to me a couple of times, I was wondering why the enemy doesn't use the magic attack they were supposed to, and then realised they had MP set to 0.
It's a special skill, and doesn't use MP or TP
Hey,

The main problem would probably be the first event page. By default "Span: Moment" means that the event will run in an infinite loop until its page condition is no longer met, even if the event does absolutely nothing.

If you want "Heal her" to happen right after Fenix gets mind controlled, you could maybe add the "Force Action Command" after adding the state on event page 2-4.
If you want Fenix to repeat the forced action on the next turn, you could still keep event page 1, but change its span to "Span: Turn" instead.

(You should also change the span of page 2-4 to "Span: Turn", or the pages will only get executed once on turn 1)

---

If this mind control state is only one of many effects that require troop events, or if you have other effects that you would want a "Span: Action" option for, you could simulate that even without scripts by having each skill/item call a common event to activate a switch for example (or use a script to do that automatically), that you could then use as a page condition.
This would likely be overkill for most problems though.
If this mind control state is only one of many effects that require troop events, or if you have other effects that you would want a "Span: Action" option for, you could simulate that even without scripts by having each skill/item call a common event to activate a switch for example (or use a script to do that automatically), that you could then use as a page condition.
This would likely be overkill for most problems though.

This worked! I tried tweaking the conditional branch version but it would only display the skill use dialogue and not apply any of the states. With the common events, the battle now actually goes how it's supposed to. Thank you!

(This is how the event page looks, for anyone wondering)
QUESTION battle_event_mindcontrol 3.png

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/trouble-with-conditional-branch-battle-events-for-enemy-attack-with-two-outcomes.169151/