Battle troop depending the party

Well hello community, I'm here to ask if there is a way to make troop changes depending on who is fighting.

example: on battle I have "red", "blue", "yellow" and "green" but in the party also i have orange, light blue and pink out off battle

if red is fighting in the troop the enemy "Purple" will appear

if Blue is in the fight, the enemy cyan will spawn, etc.

but if the party member "Orange" is in the fight instead of Blue, the "Grey" Enemy will appear.

any ideas?
If using random battles, I dunno. If your enemies are on-map, conditional branches would do it (if X is in the party, then spawn enemy Y, else if A is in the party, spawn enemy B, etc.).
Maybe a plugin or script to count the steps, then when reach a wanted value do a check in the party to get who is on It, then call a random enconter relative to the party
looks like a case of basic Boolean logic with multiple variables.
it's solvable, but you gonna have to be more specific.
like, are you working with a given set and shuffling battlers back and forth between sides or is there a specific combination that should appear upon a given input?
how many battlers are there? how many of those are irrelevant? etc.
Well
looks like a case of basic Boolean logic with multiple variables.
it's solvable, but you gonna have to be more specific.
like, are you working with a given set and shuffling battlers back and forth between sides or is there a specific combination that should appear upon a given input?
how many battlers are there? how many of those are irrelevant? etc.
4 actors on a battle but a party of 7 Members maximum
example: on battle I have "red", "blue", "yellow" and "green" but in the party also i have orange, light blue and pink out off battle
What does this mean? Just that you have those enemies also in your database?

A way to do this in the editor is to put all of the enemies in your troop. Then right-click them and select Appear Halfway.

Then you make a Turn 0 troop event that just does each of the checks you list.
Conditional Branch -> Tab 2 -> Actor Red is in party
- Enemy Appear -> Purple

and so forth for the rest of them.
give each member a number: 1, 2, 4, 8, 16, 32, 64.
sum them all up at the beginning of a battle.
the resulting number will tell you who is present: if you always have 4 battlers, the only way to add up 15 would be to have 1 + 2 + 4 + 8. The moment you swap any of them out, you no longer have 15 and specifically 15.

do a direct check for a specific ONE number depending on your events.

Original thread: https://forums.rpgmakerweb.com/threads/battle-troop-depending-the-party.155028/