Trouble with a skill

I'm trying to make a skill that when used in battle gives the user a chance to counter attack the next enemy that attacks him, I am totally lost some one help please.

thanks heaps in advance
Have the skill apply a state which has the EX-Feature CNT.


CNT = Counter Rate


So 100% is a guaranteed counter and so on.
Thanks, works perfectly.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/trouble-with-a-skill.16943/