Having certain Actors deal less Damage against specific Enemy Types

So I'm trying to implement a mechanic that has specific actors deal less damage towards a certain type of enemy. Think of it like how Sanji from One Piece fights female characters. He intentionally misses his attacks or deal no damage whatsoever to them. While at the same time, he deals tremendous damage to his male opponents. Is there a script that I could use to negate damage entirely, have all attacks miss, or if possible, both?
For negating damage, there's Yanfly's Buffs & States Core and Auto Passive States.

Add a passive 'Simp' state to Sanji Actor.
Add another passive state 'Woman' on all woman enemies -> that state has a custom react effect to modify damage from attackers affected by the 'Simp' state:

<Custom React Effect> if (user.isStateAffected(Simp Id)) { value *= 0; } </Custom React Effect>
or you could use the damage element rates.
Depending on what you want exactly this can be a bit tricky, especially with many interactions, but it doesn't need a plugin.

basically give The actor a damage element "sanji" and then have all female enemies with a damage rate of 0% sanji and all male enemies a damage rate of 300% sanji damage.

However this gets complicated if an actor can use different elements, because the engine always selects the one with the most damage in that case. Which would negate the 0% rates.
For negating damage, there's Yanfly's Buffs & States Core and Auto Passive States.

Add a passive 'Simp' state to Sanji Actor.
Add another passive state 'Woman' on all woman enemies -> that state has a custom react effect to modify damage from attackers affected by the 'Simp' state:

<Custom React Effect> if (user.isStateAffected(Simp Id)) { value *= 0; } </Custom React Effect>
Thank you, this is pretty much what I needed. Alternatively, is there a way to make my Sanji character miss all his hits instead or do I have to stick with damage reduction?
or you could use the damage element rates.
Depending on what you want exactly this can be a bit tricky, especially with many interactions, but it doesn't need a plugin.

basically give The actor a damage element "sanji" and then have all female enemies with a damage rate of 0% sanji and all male enemies a damage rate of 300% sanji damage.

However this gets complicated if an actor can use different elements, because the engine always selects the one with the most damage in that case. Which would negate the 0% rates.
Unfortunately, my Sanji character uses multiple damage effects so it wouldn't work.
Thank you, this is pretty much what I needed. Alternatively, is there a way to make my Sanji character miss all his hits instead or do I have to stick with damage reduction?
If you Google it, you can find plugins to modify the hit formula in MV. You'd put a similar check for the states in there to force it to miss.
If you Google it, you can find plugins to modify the hit formula in MV. You'd put a similar check for the states in there to force it to miss.
I do have all of Yanfly's Plugins including their Hit Accuracy plugin. I'm not experienced in coding but I tried swapping out value with anything that might affect hit rate but I couldn't get it to work myself. Can you explain what you mean by putting a similar check for the states? I'm not knowledgeable in using scripts so it's hard to decipher these things myself.
The default formula in Yanfly's Hit Accuracy is skillHitRate * (userHitRate - targetEvadeRate)

If you're using the states @rpgLord69 described above, you'd change it to:
(user.isStateAffected(simp Id) && target.isStateAffected(woman Id)) ? 0 : skillHitRate * (userHitRate - targetEvadeRate)
The default formula in Yanfly's Hit Accuracy is skillHitRate * (userHitRate - targetEvadeRate)

If you're using the states @rpgLord69 described above, you'd change it to:
(user.isStateAffected(simp Id) && target.isStateAffected(woman Id)) ? 0 : skillHitRate * (userHitRate - targetEvadeRate)
I see now how it goes. I even added in another one in the formula and it still works as it should. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/having-certain-actors-deal-less-damage-against-specific-enemy-types.164500/