Consecutive battles?

So I wanted to add in a dungeon aspect to my game, however, I can't seem to figure out how to set it so once the dungeon begins, the player's put straight into a battle, then for it to start another battle as soon as the previous one ended, I wanted this to be a 7 consecutive battles set up with the 7th round being a boss, anyone know how to do this? preferably with what the maker already has and not with scripts/plugins.
Use an autorun event with something like the following:

Code:
Battle Processing (regular troop)
Control Variables: Battle Counter += 1
Condition: If Battle Counter = 6
  Control Self Switch A = ON
  Battle Processing (boss)
End

and set up a second page conditioned by self switch A.

Make sure you use a variable you haven't used before. It will be set to 0 by default. So the autorun event will loop 6 times, calling the battle each time and incrementing the variable. When the variable reaches 6 (after 6 regular battles), the condition will be true, self switch A will be turned on, and the boss battle will begin.

In this case, I'm pretty sure it's okay to do the self switch before the boss battle - I've had to turn on switches prior to battles to make sure enemies didn't reappear briefly when you come back to the map from a battle. But if the boss battle doesn't happen, move the self switch to after the boss battle call.

Make sure the second page is still triggered by Action Button - don't set that to Autorun, or you won't be able to move afterwards.
What Shaz suggested works fine if you want the same enemies 6 times. You didn't specify if it the same troop or if you want different enemies each time.

If you want 6 different troops, you will have to put in 6 Battle Processing commands, rather than using a variable to count them up.
If you want to do it all without ever leaving the battle scene you need to set up special enemies for each enemy in the sequence.

Assuming each troop has more than one enemy you'll also need switches.

So what you do is use conditions.

Conditions: Enemy HP: #1 0% or below
- set switch Enemy 1 dead to true
- conditional branch: check if all enemy switches are true

If so, start a new battle with the next troop. If I'm remembering correctly, this shouldn't then leave the battle scene as such, so it will feel like a continuous dungeon battle.

Do that until you get to the boss. You could also use that moment to add a bit of healing between enemies or some messages.

Original thread: https://forums.rpgmakerweb.com/threads/consecutive-battles.88722/