MZ Trigger a Common Event when enemy misses or an actor evades a skill?

Hi all, I managed to develop a rank system like Devil May Cry in my game, but I have a problem and I hope you can help me. Ranks go from C to S, and when an actor is hit, the rank is lowered.
To achieve this, I'm using the Visustella plugin "AutoSkill Triggers", and I set these two parameters on a skill called "Lower Rank"

<Auto Trigger: Physical Target>
<Auto Trigger: Magical Target>

The problem is that, when the actor evades an enemy skill or the enemy misses, the trigger still activates and the rank is lowered. I thought of a solution but I don't know how to achieve it: is there a way to detect when an enemy misses or an actor evades and activate a Common Event? So I can raise the rank by two levels and thus cancel the rank lowering and increase the rank by 1 because he dodged. Thanks to those who will take the time to help me.
The issue I see is that you will always trigger "Lower Rank" Skill whenever a physical or magical attack is triggered.

I guess you could try and do it your way, create a skill "Raise Rank", and simply check for the HP stats.
Before the attack, store the HP, after the attack compare the HP, if HP did not change (miss or 0 damage), trigger "Raise Rank".


You could also look for damage being dealt, if damage dealt = 0, trigger "Raise Rank"
Or using a mix of logic : If no damage has been dealt, do nothing, else trigger Lower Rank.


It's hard to tell which is the best option, but should help ^^

Maybe show how you set up the skill itself?
You could use the damage formula to make it work.

Original thread: https://forums.rpgmakerweb.com/threads/trigger-a-common-event-when-enemy-misses-or-an-actor-evades-a-skill.177038/