Hi there,
I have created a state in my game that makes use of YEP's Buffs & States Core plugin, with note tags.
See the code I've used below:
When this is successful (meaning, the random value is greater than or equal to 50), I get this error message:
Does anyone know what's going on?
The intended effect is for the afflicted actor's, or enemy's turn to be void and their actions cancelled until their next turn (where if the state is still applied, the code will be executed again).
Thank you!
I have created a state in my game that makes use of YEP's Buffs & States Core plugin, with note tags.
See the code I've used below:
<Custom Action Start Effect>
if (Math.randomInt(100) >= 50) {
this.currentAction().clear(); //Clear battler current action.
BattleManager._subject = null; //Set current battler to null, canceling the battler's action.
}
</Custom Action Start Effect>
if (Math.randomInt(100) >= 50) {
this.currentAction().clear(); //Clear battler current action.
BattleManager._subject = null; //Set current battler to null, canceling the battler's action.
}
</Custom Action Start Effect>
When this is successful (meaning, the random value is greater than or equal to 50), I get this error message:
Does anyone know what's going on?
The intended effect is for the afflicted actor's, or enemy's turn to be void and their actions cancelled until their next turn (where if the state is still applied, the code will be executed again).
Thank you!