Any way to remove states applied by armor?

I have an accessory that essentially applies this auto life effect using <Passive State: x>
However it won't go away after use like usual. I tested the code provided by yanfly in the link as a skill which works. I just need it to be on a piece of equipment.
that is one of the reasons why in the other thread i suggested making the focus sash state separate from the passive on the armor and to make the armor passive just give the actor the focus sash state at the start of battle. a passive state isnt going to be removed by the user.removeState() that that tips and tricks page uses

the usual ways to disable a passive state are to use the passive condition notetags so that when the conditions are false itll not be active, to remove the thing providing the passive state entirely from the actor, or, if the passive only does stuff through JS notetags then you can set up a conditional within the code within the passive state to not do the effect

but as i said. making the passive give a separate state at the start of battle also just works.
that is one of the reasons why in the other thread i suggested making the focus sash state separate from the passive on the armor and to make the armor passive just give the actor the focus sash state at the start of battle. a passive state isnt going to be removed by the user.removeState() that that tips and tricks page uses

How would you do that? I can't figure out how to make it apply the state at the start of battle
you'd use the <Custom Battle Effect> notetag provided by the buffs and states core plugin and the script call for adding states

Code:
<Custom Battle Effect>
user.addState(x);
</Custom Battle Effect>
where x is the id of the state to be applied
WOO! Finally works, thank you so much 😢 This is my first project and i feel like i'm slowly getting it

Original thread: https://forums.rpgmakerweb.com/threads/any-way-to-remove-states-applied-by-armor.176679/