Question on states and status effects

Hey guys, I'm working on a little thing for fun, and i'm wondering if its possible to make a state that is removed once you take damage, but only a certain type of damage?
For an example, lets say the character uses an ability that inflicts the state "Oil" on an enemy. The enemy will take double damage from fire, and then the state will be removed. That state wont be removed unless the damage taken is considered fire. Is this a possibility without the use of plugins?
No, you need plugins for that.
Damn, thats a shame. Is there any plugin you can recommend for something like that?
The easiest way would probably be just adding "Remove State: Oil" to all of your fire spells, although in this case the effect would also be removed if the damage calculation rolled a 0.

You could account for fire immunity by removing the state through adding another state instead (which resists Oil) and make any character immune to fire also immune to that additional state.

There are more elaborate possibilities using common events too, but it's probably easier to use a plugin instead at that point.
@Another Fen

Thanks, that actually works perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/question-on-states-and-status-effects.111306/