Elemental Damage Removing Status Effects?

Hey there. So... Let's say a foe is frozen. If I wanna use Fire against the frozen foe and the fire hits, the foe should thaw out. How do I make a certain element remove a status effect (ex. fire-elemental moves removing the Frozen status effect)?
There are multiple ways for this, although having it *always* happen based on the element itself would probably require a script.

An alternative approach is with a targeting mechanic:
-define a new status called "Targeted" that does nothing and lasts for 1 turn only
-have your fire skills apply this status with a chance of 100% (ideally nothing should resist it)
-run a Common Event in the attack after the targeted status is applied
-in the Common Event, run a check for each Index (1-8) which goes:
IF (enemy index #) is affected by status Targeted THEN
IF (same enemy) is affected by status Frozen THEN
remove status Frozen from (enemy)

At least that's how I would do it.
There are multiple ways for this, although having it *always* happen based on the element itself would probably require a script.

Yeah, that was what I was trying to go for. I do think the "Targeted" mechanic will probably help with a variety of things if need be, however.
I added the conditions right in the skill. In one of my projects I have a state where they are covered in oil and take more fire damage, but it is subsequently removed. For each fire attack, I check for the condition and remove it.

I use Yanfly’s action sequence so my note section is used instead of common events.
I added the conditions right in the skill. In one of my projects I have a state where they are covered in oil and take more fire damage, but it is subsequently removed. For each fire attack, I check for the condition and remove it.

I use Yanfly’s action sequence so my note section is used instead of common events.

I don't think that'll work; I just looked up "yanfly action sequence" and got an MV plugin. I don't think those are compatible with VX Ace, which is the engine I'm using (and the one whose board I posted in).
Yanfly’s latest plugins are
MV but I know he started the entire action sequence in VX.

Try here: https://rpgmaker.net/scripts/45/
Perhaps Tsukihime's Conditional States would work for you
If you haven't nailed this down yet, you could also just if/then statement in the damage formula box for the fire skill. If the frozen state exists, remove it from the target; do DMG; add fire state; else do DMG and add fire state.
I think the damage formula route is the simplest.
if b.state?(x);b.remove_state(x); end; b.add_state(y); damage here

The suggestion "do DMG and add fire state" is correct, but in the wrong order. You have to end with damage, not with adding a state.

To make the damage formula shorter, you could just add state (y) in the Effects box as normal.

Original thread: https://forums.rpgmakerweb.com/threads/elemental-damage-removing-status-effects.122587/