Custom Effects with YEP's Buffs & States core - Won't Repeat Every Turn

Hi everyone,

I've come across an issue where I'm trying to get a State to execute an action every single time an actor completes their turn.

See the code below:

Spoiler
<Custom Turn Start Effect>

user._hasExecutedSkill = false;

</Custom Turn Start Effect>

<Custom Turn End Effect>

if(!user._hasExecutedSkill){

BattleManager.queueForceAction(user, 54, -2);

user._hasExecutedSkill = true;

}

</Custom Turn End Effect>

What ends up happening, is that the effect works on the FIRST action after an actor receives the state, but then never repeats again, even though the state is still active on the actor. Does anyone have any thoughts on this?
Worked fine for me in testing. Are you using a specific battle system that may be conflicting with the Turn End Effect?
Hi @boikish , thanks for the reply.

Yes, I'm using Ellye's ATB system. Perhaps that is the problem.
@thepsyche

Have you tried turning it off and testing to determine if that's the issue?
Yes, the issue was an incompatibility. Thank you - it's resolved now!

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/custom-effects-with-yeps-buffs-states-core-wont-repeat-every-turn.120467/