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:
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?
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:
<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>
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?