RMMZ Help with force action skill after a state has expired using VisuStella Skills and States Core

Anthrenz

Warper
Member
Joined
Mar 14, 2021
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Well, I want a skill to activate (force action?) after a state has expired.

I'm trying to use this JS notetag but I'm not really into scripting/coding so I need some help

<JS On Expire State>
code
code
</JS On Expire State>

- Used for: State Notetags
- When a state has expired, run the code added by this notetag.
- The 'user' variable refers to the current active battler.
- The 'target' variable refers to the battler affected by this state.
- The 'origin' variable refers to the one who applied this state.
- The 'state' variable refers to the current state being affected.

I've already tried this:

JavaScript:
<JS On Expire State>
 var skill = 260;
 BattleManager.queueForceAction(user, skill, -2);
</JS On Expire State>

...but it's not working, thinking that it needs more codes than that.

Here's a link to VisuStella MZ Skills and States Core plugin

Any help is really appreciated
 

Latest Threads

Latest Profile Posts

Daz3D has the weirdest number scheme for model generations...
Genesis 4 is the 4th generation and oldest currently available, Genesis 1 is the 5th generation, Genesis 2 is the 6th, 3 is the 7th.... And then it goes Genesis 8. So 4, 1, 2, 3, 8. So when looking through there store you have to remember that sometimes they'll say 6 but they mean 3, and vice versa. :kaoswt:
Would opening a topic with the tutorial be interesting?

Forum statistics

Threads
111,112
Messages
1,058,370
Members
144,326
Latest member
orionalu
Top