Altering states of the attacker

Guys and Gals! My google-fu came up empty. I found it on RPG Maker VX, but not for MV. Sorry if it's too stupid!

I am trying to create some sort of cover mechanic, via the usage of the guard action. It grants you a state (In Cover) that augments your evasion rate by a whooping 75%.
My plan was to have it be removed by a) taking damage (making high hit chance weapons  and some auto-hit skills a good counter for it), and b ) by using skills(including the common attack).
It should stay up, however, when you use items, equip ammo or change equipment.

While It's clear how to make the receiver of a skill lose or gain a state, how can I implement having a state disappear when the attacker use a skill? in Vx, it was done by putting a remove_state_ID in the damage formula, if I recall well. How can I do the same in MV?

Thanks a bunch, folks!
I've moved this thread to MV Support (Tutorials is for posting tutorials). Please be sure to post your threads in the correct forum next time. Thank you.
a.removeState(x);damage formula

Original thread: https://forums.rpgmakerweb.com/threads/altering-states-of-the-attacker.57504/