Counter Attack After Damage Calculation

Is there any way for me to make it so when a state has an Ex-Parameter to Counter attack, that it initiates the counter attack only after damage is dealt? I have tried a number of solutions new and old, with scripts, with states, and with plugins. I just want the guard to function by halving damage that turn and if they are hit by damage then it counter attacks. This would make it so buffing, blocking, and attacking would be a rock paper scissors thing where attacks > buffing > shielding > attacks
Anyway I could really use some help... thank you!

Original thread: https://forums.rpgmakerweb.com/threads/counter-attack-after-damage-calculation.127558/