Trigger Skill When a State is Applied

Hello!
I want some kind of manual counterattack mechanic with SRDude active defense charge.
The mechanic is almost successfully implemented.
One thing I need to know is how to trigger skill immediately after a state is applied.

In this case, the state is called "counter".
I want this "counter" state to automatically trigger a skill when it's applied.
Is there a way to do that?

Thanks in advance! 😀

Original thread: https://forums.rpgmakerweb.com/threads/trigger-skill-when-a-state-is-applied.90280/