I'm having an issue with combat eventing...

So basically what I'm doing here is, I'm trying make so that once a foes HP hits a certain threshold, both foes transform into another foe. I want this event to trigger when either foe's HP hits this threshold but the issue I'm encountering is that the event triggers for both foes when each respective foe's HP hits that threshold.

I do not want the battle event to trigger more than once, hense why I have come here to ask how to accomplish this. It may be something obvious but I'm asking for help so I can be told the obvious as I can't seem to figure this out on my own.

Copy and paste of my event code:


Spoiler: Event page 2
◆If:#2 Rebel 2 is affected by Transformed
◆
:Else
◆If:#2 Rebel 2 is affected by Fallen
◆
:Else
◆Text:None, Window, Bottom
: :\shake HIISSS! Looks like this form won't cut it!
◆Enemy Transform:#1 Rebel 1, Changling
◆Enemy Transform:#2 Rebel 2, Changling
◆Show Battle Animation:Entire Troop, Changling Transform
◆Change Enemy State:Entire Troop, + Transformed
◆Enemy Recover All:Entire Troop
◆Text:Twilight_Faceset_1(0), Window, Bottom
: :Ch-Ch-Changling!
◆Text:Applejack_Faceset_1(3), Window, Bottom
: :Why the buck is Queen Chryisalis stickin' her swiss-cheesin'
: :hide into our war with Nightmare Moon?!
◆Text:Twilight_Faceset_2(1), Window, Bottom
: :And yet another layer or mystery slaps itself onto
: :the moldy daffadil sandwich that is the question
: :of whose behind all of this...
◆Text:Applejack_Faceset_1(3), Window, Bottom
: :Focus, Twilight! Here they come!
◆
:End
◆
:End

Spoiler: Event page 3
◆If:#1 Rebel 1 is affected by Transformed
◆
:Else
◆If:#1 Rebel 1 is affected by Fallen
◆
:Else
◆Text:None, Window, Bottom
: :\shake HIISSS! Looks like this form won't cut it!
◆Enemy Transform:#1 Rebel 1, Changling
◆Enemy Transform:#2 Rebel 2, Changling
◆Show Battle Animation:Entire Troop, Changling Transform
◆Enemy Recover All:Entire Troop
◆Change Enemy State:Entire Troop, + Transformed
◆Text:Twilight_Faceset_1(0), Window, Bottom
: :Ch-Ch-Changling!
◆Text:Applejack_Faceset_1(3), Window, Bottom
: :Why the buck is Queen Chryisalis stickin' her swiss-cheesin'
: :hide into our war with Nightmare Moon?!
◆Text:Twilight_Faceset_2(1), Window, Bottom
: :And yet another layer or mystery slaps itself onto
: :the moldy daffadil sandwich that is the question
: :of whose behind all of this...
◆Text:Applejack_Faceset_1(3), Window, Bottom
: :Focus, Twilight! Here they come!
◆
:End
◆
:End
Use the same switch for both branches. When one activates, use the switch so it won't trigger the same again, or the other one.
Use the same switch for both branches. When one activates, use the switch so it won't trigger the same again, or the other one.

Could you be a little more clear on that? I'm afraid I don't quite understand.
You cannot prevent the troop events from triggering, so you have to add another conditional branch to prevent the effect from happening twice. The easiest way to do this is to use a switch to signal that the transformation has already happened.
So both events check that same switch and if it is still off, then the troop event handled the transformation and turns the switch on.

Just don't forget to turn the switch off after combat if that troop can be battled several times, or the signal carries over between battles.
Could you be a little more clear on that? I'm afraid I don't quite understand.
Put the enemy event in a conditional branch of an OFF switch. Then, when the event gets triggered, turn that switch ON (so it won't trigger twice). Do the same for the other enemy, using that same switch (so if one triggers, the other won't).

Original thread: https://forums.rpgmakerweb.com/threads/im-having-an-issue-with-combat-eventing.97474/