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 Posts

Latest Profile Posts

If it gets 6 degrees hotter we've reach 100
I am finally done making the 'superbosses' in my game!
I'm happy because oh my gosh they were a lot of work, but I'm also sad because I love database work... And also because I loved making stupid powerful bosses ._.
Question for anyone who reads Slip into Ruby or Jump into Javascript: do I sometimes get too "explainy" with the methods/functions? Would it be more useful if I stuck to explaining what the code is doing rather than also delving into minutiae of the technical side of it?
That moment when you try to figure out a color scheme for an alien ship so that it's something other than "Grey on Grey".
It's up for viewing! See what happened when EquestriAlert got tested in 1997... or was it a test? Did somepony hack the system? Or did somepony push the wrong switch? Even Adagio Dazzle (the owner of the channel) has no clue.

Can you put the pieces together? Don't worry, the game isn't over yet! There's more pieces to add on!

Forum statistics

Threads
111,118
Messages
1,058,471
Members
144,341
Latest member
Hobbzy04
Top