Having states remove states

Is there a way to make a state that can remove a state?

I've got a lot of Yanfly's plugins and I've made a state that affects all allies (I wanted to make it an aura originally but it doesn't function unless its cast directly on the party)... but I want another aura to cancel this one out.

So I made the other one into an aura and made the aura buff a resist state (to resist the skill that affects all allies) but it doesn't remove it.

Anyone know a script that will remove the state when I turn on the aura?
Tsukihime made one such plugin, I think it's called "overriding states" or something like that, I don't have the link ready. Search her blog.
For MV: Yanfly's Buffs & States Core plugin could definitely be used to create on-Apply effects for states (such as removing another State).
For XP: This can be done automatically using the +/- checkboxes for States in the database.
For VX/Ace: Not sure if there are any scripts that do this, but would be a relatively easy scripting change to make.

In the future, please do not post "How to" questions in Game Mechanics Design (which is designed for conceptual questions about the design of good gameplay, not the implementation). Post in the appropriate Maker's "Support" section if you want to find out how to do something, or post in the corresponding "Plugin/Script Requests" section if you're looking for a plugin or script to do what you're asking.
For me, I would use Himework's Conditional State. If I were to do a Mini and Giant state that wouldn't be together at the same time, for Mini, I'd write something to the effect of:

<conditional state>
a.remove_state(GIANT)
MINI
</conditional state>


---

Wait, if you're using Yanfly's scripts, Yanfly does have Lunatic States. However, that one would be a bit more advanced to set up, since you may have to do something like <apply effect: aura> and then write this in the script
when /AURA1/i
self.remove_state(AURA2)

It's up to you which script you want to use.
@Manofdusk "How do I...?" questions belong in the Support forum for the engine you are using. However, I can't move this as you have not specified which it is. I might guess that because you refer to 'scripts' it's Ace, but that is not enough to be certain.

Would you please, therefore, confirm which engine you are using.
Thanks.
yeah, I'm using MV. Sorry about that. It's been a while since I've asked for help. I couldn't for the life of me remember which forum to put it in.
Okay, I'll move this to RPGMaker MV Support. It's just as well I didn't guess using "scripts"!

In case you forget to mention this on another occasion, you might like to add the engine used into the info under your avatar.

Moderator note: Moving
alright. on the bright side, I got the aura to work so the point is moot now 😛

Original thread: https://forums.rpgmakerweb.com/threads/having-states-remove-states.75447/