IF (AbilityUsed) == ?

Disruptis

Villager
Member
Joined
Mar 4, 2015
Messages
5
Reaction score
0
First Language
English
Primarily Uses
I'm not sure if this isn't a thing or I'm just an idiot, but does anybody know how to make an IF statement that triggers when an actor uses a certain ability in a battle? Is there a plugin that does this or am I missing something obvious?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
You could just turn on a switch in that skill's damage formula, then have a troop event page set to run the entire battle that is conditioned by that switch.  If the last command on that page is to turn the switch off, every time the skill is used, that event page will run.


Unfortunately if you want to check this on every battle, you'll need to add that event page to every troop, or use a plugin that either allows common events to run in battles or lets you copy a page from a 'base' troop onto every other troop without having to do it manually.  I believe both of those exist as MV plugins.
 

Disruptis

Villager
Member
Joined
Mar 4, 2015
Messages
5
Reaction score
0
First Language
English
Primarily Uses
You could just turn on a switch in that skill's damage formula, then have a troop event page set to run the entire battle that is conditioned by that switch.  If the last command on that page is to turn the switch off, every time the skill is used, that event page will run.


Unfortunately if you want to check this on every battle, you'll need to add that event page to every troop, or use a plugin that either allows common events to run in battles or lets you copy a page from a 'base' troop onto every other troop without having to do it manually.  I believe both of those exist as MV plugins.
It never hit me that I could use js in there. Thanks!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,236
Members
137,608
Latest member
Arm9
Top