MV Additional elemental damage after skill was executed

Hi everbody,

I am in need of some help to get one of my skills working.
The idea is quite simple: After the attack has been completed, i'd like to check if the target has a specific state applied. If yes, an additional animation should be played and the skill damage should be applied once more, but with a different element type.

The setup works fine so far, the animation plays as defined, but I am struggling with dealing the skill damage once more and with using the element type 16 instead of 7 for this.

Here the corresponding section of the code. I am using Yanfly's action sequence, so the whole part of checking for the state is happening in the follow action after the skill resolution is completed.

...
<follow action>
wait: 30
IF target.isStateAffected(104)
animation 302: target
wait for animation
?????
END
wait: 10
opacity not focus: 100%
</follow action>
...

Btw.: Not sure if it can be done with one of Yanfly's many PlugIns or JS or somehow else...
If you have YEP Element core, you can put 'force element: 16' in the action sequence. That'll change the skill effect to that element and ignore all others.
Moved to: Plugin Support
I was playing around with FORCE ELEMENT for a while. The command basically works, but it is not running exclusively for this skill but for all skills and actions from all actors. In order to revert this, I have to nullify it, but this can't be done exclusively for this particular element.

Hm...the more I am thinking about it...I'll try to work with ADD ELEMENT for the other skills and make an invisible state which triggers this effect. Then I don't have to worry about the NULL ELEMENT or CLEAR ELEMENT.

Thanks so far, I'll give it a try.
I was playing around with FORCE ELEMENT for a while. The command basically works, but it is not running exclusively for this skill but for all skills and actions from all actors.
Do you mean that you put the "force element" command into this action sequence and it's somehow affecting other skills? That seems extremely unlikely unless there's some weird, substantial bug.

Can you clarify?

The other possibility is you could recalculate your damage formula inside that portion of the action sequence then apply the pertinent element rates. It would involve some script calls, but it's doable. However, the above advice should work correctly for you.

Original thread: https://forums.rpgmakerweb.com/threads/additional-elemental-damage-after-skill-was-executed.155659/