Hi all,
Trying to be a bit sneaky and use a self-referencing flag to be the condition of a passive state, so that the passive state can be removed once the flag is activated on the user.
One complication is that I want to make the flag true in a skill, so I'm trying to figure out how to do this.
For instance, let's say the condition on the passive state is:
How would I then make this flag true in an action sequence?
I've tried both of these:
But neither is working.
Thanks!
Trying to be a bit sneaky and use a self-referencing flag to be the condition of a passive state, so that the passive state can be removed once the flag is activated on the user.
One complication is that I want to make the flag true in a skill, so I'm trying to figure out how to do this.
For instance, let's say the condition on the passive state is:
Code:
<Custom Passive Condition>
if (!user._stateFlag) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
How would I then make this flag true in an action sequence?
I've tried both of these:
Code:
Eval: user._stateFlag = true;
Code:
Eval: BattleManager._subject._stateFlag = true;
But neither is working.
Thanks!