Is there a way to check the attack element? I'm using Yanfly's action sequence and im trying to get different sequences for different attack element, using if command.
Checking Attack Element.
RPG Maker MV SupportDoes yanfly's plugin tell you how to access the current skill that's being used?
Hmm, "Action effect" makes you use the effect of the action. but I don't see anything that checks the attack element of the weapon, must be on eval, or maybe JS code but i'm not good with using JS, i also checked F1 -> JS Library , and i couldn't see anything for attack element... or I'm not looking hard enough :v
I kinda made a workaround, i added "Attack State" on the weapon, which adds a state that does nothing.. then on the note of the skill checks target.isStateAffected, then I remove the state at the end.
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
move user: targets, front, 20
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
wait: 20
action effect
if target.isStateAffected(21)
MP +15%: user, show
if Math.random() > 0.75
wait: 12
MOTION THRUST: user
ANIMATION 3: target
wait: 12
action effect
end
end
REMOVE STATE 21: target, show
</target action>
display action
immortal: targets, true
</setup action>
<target action>
move user: targets, front, 20
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
wait: 20
action effect
if target.isStateAffected(21)
MP +15%: user, show
if Math.random() > 0.75
wait: 12
MOTION THRUST: user
ANIMATION 3: target
wait: 12
action effect
end
end
REMOVE STATE 21: target, show
</target action>
Original thread: https://forums.rpgmakerweb.com/threads/checking-attack-element.53536/