I would like to learn what the syntax is for checking what the scope of a skill is before it is used.
I am using Yanfly's Buff and States Plugin. After a couple of hours of scouring code examples I was able to construct a basic "cover ally" ability that almost works exactly how I want it to. Right now, an actor with the "cover ally" state takes no damage when attacked, and instead the damage is dealt to the actor who applied the "cover ally" state.
However, I want this to only activate when the target actor is hit by a single target move. I need to put a conditional before my existing code which checks whether or not the used skill is a multi-targeting skill or not, but I can not find the correct syntax for this:
I am using Yanfly's Buff and States Plugin. After a couple of hours of scouring code examples I was able to construct a basic "cover ally" ability that almost works exactly how I want it to. Right now, an actor with the "cover ally" state takes no damage when attacked, and instead the damage is dealt to the actor who applied the "cover ally" state.
However, I want this to only activate when the target actor is hit by a single target move. I need to put a conditional before my existing code which checks whether or not the used skill is a multi-targeting skill or not, but I can not find the correct syntax for this:
Code:
<Custom React Effect>
if ( USED SKILL IS NOT MULTI TARGET) {
var dmg = value
origin.gainHp(-heal);
origin.startDamagePopup();
origin.clearResult();
value = 0
}
</Custom React Effect>