Enemy Troop: Battle Event triggered by enemy state

Hello dear fellow creative RPG Makers!

I am struggling with this:

I would like the event to happen immediately whenever the enemy gets dizzy.
However, the event only happens when the full turn is over, even if I change the condition to Turn 0 or the span to Battle.

What am I doing wrong?
what.png
I think you change the Span from "Turn" to "Moment". Never worked with it before so I can't say for certain, but that's my best guess.

EDIT: You might also have to set the condition from "Turn" to something else. I'd suggest "Enemy HP 100% or Below" so that it runs constantly until the condition itself is met.

Not sure if that'll lag combat or not though.
I tried it and unfortunately, it still waits until the turns of all party members are over...

Is there alternatively a way to call a common event whenever an enemy is affected by a certain state?
Sorry, I edited my post too late. I just noticed you had the condition set to "Turn". Just set it to "Enemy HP 100% or below" so it'll run whenever that happens, instead of at the end of the turn.
I tried it and it's still the same... It still waits until all actor's turns are over before the event happens.
I ran a couple quick tests. If the Enemy HP was set to 100% or lower, the battle would "freeze" on me as it was constantly checking the conditions and wouldn't proceed through the battle. I dropped the HP down to 50% and added a fourth member of my party who had a high probability to inflict "L1 Poison". The very moment the HP dropped below 50% and the enemy was poisoned, battle aborted. My last actor never even got to finish their turn.

I suggest setting the Condition to not be "Turn" as it goes through the entire turn for battle before executing. I suggest something more in line with how your own game plays, especially if you're meant to be scripting this particular combat. You could easily set it for 99% HP or whatever guarantees you inflict the state on the enemy.

Span should be set for "Moment" however, as it'll execute immediately, provided the Condition is met first.

Here's how it works:

Combat checks the Condition. How often it checks the condition is set by the Span. If the Condition is met, it executes the programming, provided the Span tells it to execute. It'll Abort the moment all the conditions are met. Provided you don't have it freeze first like I did.

I tried it using Turn Conditions, and it always froze if the Span was "Moment".

Basically, if you just want combat to end immediately, you have to use "Moment" as your Span and have a very reliable way of inflicting the State you want in order to have it work without a game freeze. Most reliable way I found was just the "Enemy HP" Condition and setting it to something reasonable, so that the game wouldn't freeze, but so that the state would be inflicted the moment a skill or weapon was used. But, a reliable way to inflict the state you want probably isn't an issue, since an Aborted battle is something that's a scripted encounter.

upload_2017-8-22_15-51-18.png

Original thread: https://forums.rpgmakerweb.com/threads/enemy-troop-battle-event-triggered-by-enemy-state.83064/