Enemy use Skill when Actor is Afflicted with State

Hey there guys,

So basically it's all in the title and shown through the screenshot below; for the life of me, I cannot figure out why this enemy will not use the skill when the battle event turns the switch on; for reference in the screenshot, the rating for the Skill I don't want them to use was also set to 1 but it didn't seem to matter.

Any and all help hugely appreciated!
KidCreator
Untitled-1.png
This is a slightly annoying quirk of the engine. The enemy's actions are calculated at the very start of the turn, before your event runs. 😐

To work around it, just make a copy of your troop event and set the first event page's Condition: Turn 0 and Scope: Battle! ^_^

I would also recommend setting the other page's Condition: Turn End, since Scope: Turn already ensures it will run once per turn and it's better to check right before the next turn begins than after the enemy's actions are determined.

Edit: for more sophisticated/flexible AI you may want to take a look at Yanfly's AI Core plugin: http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/
This is a slightly annoying quirk of the engine. The enemy's actions are calculated at the very start of the turn, before your event runs. 😐

To work around it, just make a copy of your troop event and set the first event page's Condition: Turn 0 and Scope: Battle! ^_^

I would also recommend setting the other page's Condition: Turn End, since Scope: Turn already ensures it will run once per turn and it's better to check right before the next turn begins than after the enemy's actions are determined.

Edit: for more sophisticated/flexible AI you may want to take a look at Yanfly's AI Core plugin: http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/

Thanks so much for the work around! It worked perfectly! I was considering the A.I plugin but for the time being seemed slightly too complex aha.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-use-skill-when-actor-is-afflicted-with-state.91929/