MV Passive skill that can nullify state from weapons/armor

Hello,

I have some weapons that are two-handed, meaning they don't allow you to yield off-hand items such as shields. To do this, I made them apply a state once equipped that seals the "Off Hand" equipment type. However, some characters have a skill that allows them to yield such weapons like one-handed ones, meaning they can use them alongside items such as shields.

What I've tried to do is make a second state gives State Resist to the first state, but it didn't work. I added a passive condition (from Yanfly's plugins) to the first state so that it's enabled only if the character doesn't have the second state, it still didn't work. I tried adding the State Resist directly to the character's class, yet again, it didn't work.

Any help on how to implement this would be appreciated!

First state. State #350 is the second state that was meant to nullify this state

Spoiler: Image
01.png

Second state, provided by the skill that allows you to yield two-handed items as one-handed ones
Spoiler: Image
02.png
This plugin, right?
I don't see Not State X in the list of valid syntax for that notetag. Try this instead:

<Custom Passive Condition> condition = !user.isStateAffected(350); </Custom Passive Condition>
I.e. "enabled iff the user is !not affected by state ID 350".
This did the trick! Thank you very much for your help! 🙂

As for Not State, it's from this plugin: Passive Condition Cases
This did the trick! Thank you very much for your help! 🙂
Great, happy RPG Making~ 😂

As for Not State, it's from this plugin: Passive Condition Cases
Oh, I see! That should work, too, but you would need to use the correct tag, i.e.

<Passive Condition Cases> Not State 350 </Passive Condition Cases>

Original thread: https://forums.rpgmakerweb.com/threads/passive-skill-that-can-nullify-state-from-weapons-armor.158681/