Basically I'd like a skill to fire once a state is applied.
The state itself is being added through a script:
And all that works fine. But now I'd like a skill to deal damage to the target, once the state is applied.
The notetag I'm using is
<JS On Add State>
user.forceAction(52, -1);
BattleManager.forceAction(user);
</JS On Add State>
But it isn't doing anything... Ideas?
Edit: Okay so "user" needed to be "target" LOL. I think it's working? I'm not sure how to delete the post =X
The state itself is being added through a script:
JavaScript:
for (const target of BattleManager._targets) {
if (target.states().contains($dataStates[43])
&& target.states().contains($dataStates[44])) {
target.addState(53);
And all that works fine. But now I'd like a skill to deal damage to the target, once the state is applied.
The notetag I'm using is
<JS On Add State>
user.forceAction(52, -1);
BattleManager.forceAction(user);
</JS On Add State>
But it isn't doing anything... Ideas?
Edit: Okay so "user" needed to be "target" LOL. I think it's working? I'm not sure how to delete the post =X