Attack upon enemy missing its move?

So I was wondering if it's possible for an attack to be done when an enemy has missed it's move? Is their code that can be run or a way to do it? I got the yanfly Auto skill triggers but none of them activate on the enemy missing.
Welcome!

Just as a bit of terminology to help people know exactly what you're using, it looks like that plugin is by the VisuStella team, not Yanfly.

Since you have VisuStella plugins, I would try doing this Battle Core notetag (it can go on the actor, or a passive state granted by something, I don't know the context of when you want this to happen):
Code:
<JS Post-Apply as Target>
if (target.result().missed)
{
    target.forceAction(1, user.index());
    BattleManager.forceAction(target);
}
</JS Post-Apply as Target>
Thanks!
The code didn't work for some reason. The state doesn't call the attack.
If you press F8 and go to the Console tab, does it show any errors?

And you have VisuStella's Battle Core installed?
I'm not sure if it's an arrow, but when it requests the id in console it's null. Also yes, I do.
I'm sorry, I don't know what any of that means. Screenshots are your friend.

Edit: I just saw an error in my code - it should be forceAction(target), not user.
I changed your code to have that and it worked! Thanks!

The only problem is that it doesn't hit the one target that specifically attacked it, but only the first one who missed. Thats fine tho.

Original thread: https://forums.rpgmakerweb.com/threads/attack-upon-enemy-missing-its-move.165635/