MZ Skills and States Core VisuStella MZ <JS On Expire State> Doesn't Work!

I've been trying to apply to a state:


<JS On Expire State>
user.forceAction(394, -1);
BattleManager.forceAction($gameParty.members()[1]);
</JS On Expire State>

But it doesn't apply the skill at all.

I was referencing this thread:
I've been trying to apply to a state:


<JS On Expire State>
user.forceAction(394, -1);
BattleManager.forceAction($gameParty.members()[1]);
</JS On Expire State>

But it doesn't apply the skill at all.
Can I see the state setup in your database, please?
<JS On Expire State>
user.forceAction(211, -1);
BattleManager.forceAction($gameParty.members()[1]);
</JS On Expire State>

1647470406337.png

Can I see the state setup in your database, please?
It's worth noting that my own Jump uses -2 for the target and is in a JS Pre-Regenerate rather than On Expire.

1647471974450.png
It's worth noting that my own Jump uses -2 for the target and is in a JS Pre-Regenerate rather than On Expire.

View attachment 220134
Can I see the whole note?
JavaScript:
<JS On Add State>
  target._jumpTurns = 2;
</JS On Add State>

<JS Pre-Damage As Target>
  target.clearResult();
</JS Pre-Damage As Target>

<JS Pre-Regenerate>
  target._jumpTurns--;
  if (target._jumpTurns <= 0) {
    const skill = 277;
    const target = -2;
    user.forceAction(skill, target);
    BattleManager.forceAction(user);
  }
</JS Pre-Regenerate>
I think it worked, I'm going to double check it in an hour and get back to you!

Original thread: https://forums.rpgmakerweb.com/threads/skills-and-states-core-visustella-mz-js-on-expire-state-doesnt-work.145839/