Changing the animation of a skill after a state is applied

Is there any script that would allow one to change the animation of a skill/multiple skills if a certain state is applied?

Example: a fire-based buff is applied to a battler, and that battler casts a spell like Thunder. Instead of the normal animation for Thunder playing, a different animation would play with more fiery effects and whatnot, reflecting the battler's current state.
?
I imagine you would have to call a common event from the skill and then use conditional branches to check for when the state is applied to a specific character, then say what animation to play. You may have to adjust timings or something and the animation for the skill would have to be blank.
I doubt this would work well, but without a script that could control skill animations, I don't see a good way to do it.
I imagine you would have to call a common event from the skill and then use conditional branches to check for when the state is applied to a specific character, then say what animation to play. You may have to adjust timings or something and the animation for the skill would have to be blank.
I doubt this would work well, but without a script that could control skill animations, I don't see a good way to do it.

This works until the state wears off since the common event happens only when the skill is used so the animation will be different forever once they are changed. Or until the next battle, I don't know I have never tested this so far.
Yes so you could do something like turn a switch on that activates another common event in parallel process, which will check for the state applied. when it is not change settings and turn switch off.
It's the only way I can think to have it done short of a scripter making something to do this.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-animation-of-a-skill-after-a-state-is-applied.83068/