Critical Hit Passives

Hi all,

So I try to exhaust all my research options before I ask questions (So please forgive me if I have posted this in the wrong section) and waste anyone's time but as I try to finish up my passive skills I keep getting stumped on one aspect. I know there are plugins and ways to force effects such as statuses and buffs when the player LANDS a critical hit, are there any plugins or tricks that anyone could point me towards that would help me check and activate a passive if a player RECIEVES a critical hit? I've been looking everywhere and am not quite finding it. Thank you for anyone that can give any guidance!
You posted this in MZ support, but your profile says you use MV. Since I'm therefore unsure which engine you're using, I'll give MZ answers but everything has a Yanfly equivalent for MV.

You'd need to have a second passive state (e.g. from VisuStella Skills and States) on the actor. In the notetags for that state, put:
Code:
<JS Post-Damage as Target>
if (target.result().critical)
    $gameSwitches.setValue(switchID, true);
</JS Post-Damage as Target>

Replce the word switchID with the ID of an unused switch in your game (no leading 0s). Then your other passive state that you want to turn on and off has a condition of that switch. You just turn it back off whenever you want.
Thank you so much! I greatly appreciate your answer! I'm sorry for the confusion in engine usage I actively use both!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/critical-hit-passives.151465/