Counterattacking

I've noticed that RMMV forces fight options to be "Fight" and "Guard" amongst other things.


What I have in mind doesn't involve Guarding, and I've figured out how to change the name of it so that I can have "Counter" as an option instead.  I've also figured out how to make a "Counterattack" state using the defaults RMMV gives me.


I don't know how to link the two, though; how do I link the Battle Menu option "Counter" into triggering a state?  I think I'd have to write a skill that creates the state, but I don't know how to connect menu options to states/skills.  Help?  
Skill #2 in the database is triggered when you use the Guard command (even if you're renamed it).
Skill #2 in the database is triggered when you use the Guard command (even if you're renamed it).

So I just need to set up my skill to trigger a Counterattack state?  
I believe so.  It will probably work best if you give this skill a very high Speed addition and make the state disappear at the end of the turn (similar to how Guard works in the default setup).

Original thread: https://forums.rpgmakerweb.com/threads/counterattacking.64414/