- Jul 8, 2021
- Reaction score
- First Language
- Primarily Uses
What are the settings on your state? If I understand correctly, states don't get removed at turn end until their counter is at 0 - that means the engine doesn't natively support the ability to have states that only last for the turn they're applied, as the minimum value you can enter for the duration is 1 (think of it as the number of full turns).
So for this to work, you'd have to use note tags or a line of code in your After Eval to make the duration of the state start at 0.
I tried adding
member._stateTurns = 0;
These are the state's settings; they're fairly simple:
Turning off the Turn End auto-removal causes the state to not be removed at all, even though the addition to the After Eval sets the turns to zero (I assume that it doesn't check turn count if there is no auto-removal parameter). Forcing a removal through e.g. user.removeState in the state's note field is not effective.
Sorry if I'm overcomplicating this but I am stumped.