Interrupting action sequences

hope its not much of a pointless thing to ask since this is more of a doubt i have rather than an essential i seek for my game, but after searching for a bit cant find if it something thats possible.

im using the yanfly action sequences packs and i was just wondering if there is a way to interrupt the action sequence of an enemy skill to then immediatly play another, today i finished working on a conditional counter attack that happens if the player is hit by a "ranged" attack, reflecting the projectile back and i feel the feedback would be even better if the counter immediatly played in the moment of getting hit instead of playing after the enemy attack animation finishes.

tried some of the stuff like "break action" and some "clear" commands on the action sequences but that just seems to literally break the skills themselves

bat.gif


honestly i dont actually mind if its not possible, the feedback from the animation itself im already way happy with, its more of a doubt to see if i can push it further.
Maybe have the enemy action check at the beginning before the attack whether the attack will be countered and if so, play a different animation.
i see, the issue with that is that id have to make duplicates of every projectile attack in the game but cut off at the hit, i guess its no issue if you have a ton of animation slots but it seems a bit of pointless bloat to me, ill try it tho, maybe i can use that for specific occassions, thanks.
You can try Caethyril's script
ill give it a try, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/interrupting-action-sequences.163088/