Is there a way to create Status Ailment/Effect Synergy

Hello, I was wondering whether or not there's a way to create a sort of knock-on/synergy with status effects/ailments? By this I mean having a combination of ailments or effects that with both being present creates a third status/effect. As a quick point of reference, what I mean is something like:

Enemy A is on fire then Enemy A is frozen both of these ailments being triggered on the same enemy results in the enemy receiving the damp ailment instead of taking the damage from both fire and frozen.
You can try creating Three (3) States
State 1: Fire/Burned
State 2: Ice/Frozen
State 3: Damp/Damped

Utilize Battle Event wherein you will use conditional statements:
If State 1 is ON/Present{
If State 2 is ON/Present{
remove State 1
remove State 2
add State 3
}Else
}Else
End

I hope this gives you an idea. Feel free to hmu if you might need a hands-on assistance
Another option is a plugin like YEP Buffs & States Core, e.g. for an "On Fire" state:

<Custom Apply Effect> if (target.isStateAffected(12)) { // applying "On Fire" on top of "Frozen" target.removeState(11); // remove "On Fire" target.removeState(12); // remove "Frozen" target.addState(13); // add "Damp" state } </Custom Apply Effect>

I feel like I've seen a plugin specifically for this kind of state progression, but I can't remember where...
Another option is a plugin like YEP Buffs & States Core, e.g. for an "On Fire" state:

<Custom Apply Effect> if (target.isStateAffected(12)) { // applying "On Fire" on top of "Frozen" target.removeState(11); // remove "On Fire" target.removeState(12); // remove "Frozen" target.addState(13); // add "Damp" state } </Custom Apply Effect>


I feel like I've seen a plugin specifically for this kind of state progression, but I can't remember where...
Thankfully I own just about every YEP plugin, so I'll give this a try & report back with an update.

EDIT: Doesn't seem to be working, but I'll try tinkering a little.

EDIT II: It works! Thank you! <3
Utilize Battle Event wherein you will use conditional statements:
The problem with this is trying to get to get a condition that works.

The "easiest" way would be to make it a Turn End or Turn condition that checks every party member for either of the conditions, then the other, then does stuff in the way that you describe. Unfortunately, it might look disjointed to the player to see the battlers getting these states but the effect doesn't actually trigger until the beginning/end of a turn, instead of when it happens during combat.

And then, of course, you have the minor annoyance of having to copy and paste that event into every troop in your game.

The big advantage to caethyril's suggestion is it will happen instantaneously when the states are applied (and also it's less work).

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-create-status-ailment-effect-synergy.147566/