Assistance with Skill for returning state when hit

Hi,

First time posting, so sorry if it's not in the right area. I have had a look for a while but have been unable to find something in the right direction.

I'm looking at a passive state that has a chance to inflict a state when struck. e.g. 25% to blind enemy when an actor is hit (not when they hit).

Is this possible to apply a status "when hit" rather than "on hit"?

I've been looking at the YEP_SkillCore plugin, at the <Post-Damage Eval>, but I don't know how to make it occur from an actor side (rather than the enemy side).

Thanks for any assistance/feedback.
This cannot be done without a plugin, and most probably you'll need a specific plugin for that.
Moved to: Plugin Request
If you use Yanfly's Buffs and States Core & Auto Passive states this is VERY possible if I get what you mean. So you're looking for a way to make it so that when an enemy attacks an actor (and the actor has this state) there's a 25% chance the enemy goes blind?
Yes Fugama, I'm looking to apply the state to the actor and it makes the enemy go blind.
Code:
<custom respond effect>
    // 1.0 = 100% 0.35 = 35%, and so on Change this to the percent chance of applying the buff
    var chance = x
    // ID number of the state you wanna apply to the attacker here
    var applyStateID = x
    var randNo = Math.random()
    if (randNo < chance){
        user.addState(applyStateID)
    }
</custom respond effect>

If you use Yanfly's buffs and states this will work, if you want it to be passively there (as in you don't need to actively try and give the buff through an ability/item use) get Yanfly's auto passive states as well.

in the code there's comments marked by a "//" do what they say to the lines below them an you'll be set. just add it to the new states notebox
Thanks Fugama, that worked. I never thought it would be under that plugin so was reading through the other help files to no success.

Appreciate the assistance, from what I've seen it's usually simple solutions, but knowing where to look.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/assistance-with-skill-for-returning-state-when-hit.76662/