Enemy Counter attack

Hi!!

I want to create an enemy that counterattacks every time it takes damage (100% of the time), regardless of whether it's physical, magical, or "certain hit". I want the counterattack to target the actor who dealt the damage, not random. Finally, unlike the default counterattack in RPG Maker MZ, I would like the counterattack to trigger after receiving damage instead of dodging the attack.

I’m using the VisuStella Battle Core plugin, and I also have the Auto Skill Trigger plugin. I tried using that, but I only managed to make the enemy attack the first actor, not necessarily the one who dealt the damage...

Any ideas?

Whoops... I found a thread with the answer, sorry!! Please close this 😛

Original thread: https://forums.rpgmakerweb.com/threads/enemy-counter-attack.171907/