Enemy Troop Set up question please

I'm trying to make a troop of 3 enemies. Now, once two of the tree are defeated, I would like the music to change along with the backdrop. How can I accomplish this? I'm not sure how.

All I've managed is to change the background music from the normal battle music with a condition of Turn 0 but no idea how to change it again.

Help would be appreciated, thanks!
same way, just instead of condition turn 0 you make it conditional on variable 2 or higher, and make three troop events checking for enemy health that count var+1 on HP=0.
same way, just instead of condition turn 0 you make it conditional on variable 2 or higher, and make three troop events checking for enemy health that count var+1 on HP=0.

I don't know how to do that. Would it be alright if you showed a screenshot please?
Under Troops, have a tab that checks every turn, with conditional branches for each enemy that check if they're inflicted with knockout. If one is knockout, add +1 to a variable (this variable must reset to zero at the start of each turn). If that variable reaches a value of 2, then have the event change battle background and music.
Under Troops, have a tab that checks every turn, with conditional branches for each enemy that check if they're inflicted with knockout. If one is knockout, add +1 to a variable (this variable must reset to zero at the start of each turn). If that variable reaches a value of 2, then have the event change battle background and music.

How do you exactly "check a tab" each turn?

I've set up the other two monsters with a HP of 15 so that a magic attack that attacks all kills them in one hit. How do I reset the variable?

Right now I have the condition for "Turn end" and Span at "Battle"

◆If:Enemy knockout = 2
◆Change Battle BGM:2000_Battle1 (90, 100, 0)
◆Change Battle Back:DarkSpace & DarkSpace
◆
:End
◆If:#2 Spidah is affected by Knockout
◆Control Variables:#0037 Enemy knockout += 1
◆
:Else
◆
:End
◆If:#3 Spidah is affected by Knockout
◆Control Variables:#0037 Enemy knockout += 1
◆
:Else
◆
:End

But this is not working? Can someone just please show me a visual? 😅


Edit: I want two specific enemies knocked out and then the background music to change. How do I do this? I am trying to do what you guys but I'm not sure how to do it.

Coniditons "Don't Run" and "Span Battle"

◆If:#2 Spidah is affected by Knockout
◆If:#3 Spidah is affected by Knockout
◆Control Variables:#0037 Enemy knockout += 1
◆
:End
◆
:End
◆If:Enemy knockout = 1
◆Change Battle BGM:2000_Battle1 (90, 100, 0)
◆
:End

This doesn't work either!
Span at "Battle"
The Span determines how often the conditions are tested and how often this troop event runs.
Battle: once per battle
Turn: once per turn
Moment: once per skill use
"Don't Run"
Run comes from the term "to run a program", "Don't run" means "never execute this troop event".
That condition has absolutely nothing to do with escaping from the battle, and whoever created that myth needs to be shot because too many new RM-developers have fallen for it.

I suggest you follow some of the eventing tutorials to learn what is what as it will help you prevent such mistakes.
How do you exactly "check a tab" each turn?

I've set up the other two monsters with a HP of 15 so that a magic attack that attacks all kills them in one hit. How do I reset the variable?
Make a tab in the Troops under these conditions: Turn 1+1x, Span: Turn.

Then, this is how I would make it:
-If enemy #1 is knockout: Variable +1
-If enemy #2 is knockout: Variable +1
-If Variable = 2: Change music + Background
-If Variable < 2: Set Variable 0 (so it resets count if it counted only 1 knockout))

For the other one, you just need to change the conditions on which it checks. Set the tab to: Turn 1+1x, Span: Turn.
Edit: I want two specific enemies knocked out and then the background music to change. How do I do this? I am trying to do what you guys but I'm not sure how to do it.

Coniditons "Don't Run" and "Span Battle"

◆If:#2 Spidah is affected by Knockout
◆If:#3 Spidah is affected by Knockout
◆Control Variables:#0037 Enemy knockout += 1
◆
:End
◆
:End
◆If:Enemy knockout = 1
◆Change Battle BGM:2000_Battle1 (90, 100, 0)
◆
:End

This doesn't work either!
You can use a counter like @Milennin suggests, or nested branches, whichever suits you; you don't need both. I believe End Turn by itself should suffice for the condition; otherwise I'd recommend Turn 1*X (X is the current turn number, which is increased from 0 to 1 by the time you start inputting actions).

The Span determines how often the conditions are tested and how often this troop event runs.
Battle: once per battle
Turn: once per turn
Moment: once per skill use
😅 Isn't the Moment span equivalent to an Autorun map event? I think the condition is checked every frame the troop's interpreter is not busy: BattleManager.update > .updateEvent > .updateEventMain > $gameTroop.setupBattleEvent.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-troop-set-up-question-please.105247/