Armor which applies a state upon taking damage

I'm trying to create an accessory that has the following effect:
Enemies that attack the wearer have a 10% chance to become poisoned.

I've tried dabbling with both Yanfly's state reactions and counter control to achieve this effect, but so far I've not managed anything which fits the bill. Is there a way I can go about this, with or without plugins?
Without plug-ins? Nearly impossible if not impossible.

With plug-ins? I think something like this was doable in ACE with Yanfly's React effect (part of their state reactions script), and it seems Yanfly kept a lot of the items the same in MV. Look into their state reactions plug-in more and look for things related to reaction, as that is meant for how you react to taking damage.

Moving to Plug-in Support

This will require two Yanfly plugins: Auto Passive States and Buffs States Core.

Have the equipment add a passive state to the wearer. On that passive state, use the following notetag:

<Custom React Effect>
var chance = 0.1; // Chance for inflicting state. 0.1 is 10%.
var stateID = x; // Replace with state id of poison state.

if (Math.random() < chance) user.addState(stateID);
</Custom React Effect>
@Naveed: Perfect solution - thank you! I was overthinking the reaction effect in a big way: this is so much less clumsy.

Original thread: https://forums.rpgmakerweb.com/threads/armor-which-applies-a-state-upon-taking-damage.83221/