Cursed mirror

I want to make a boss battle a mirror that makes you fight evil reflections of the people in your party. Now in my game there are 8-10 party members (The final number may change) with a max party size of 4. How do I make the boss where it is the people in your current party and not specific members or is this too much to try for?
Off the top of my head; in the battle troop event you could set a variable equal to the actor's ID# in the respective party slot and then run conditional branch checks to transform the corresponding enemy based on the result. You'd have to do a check for each potential party member and repeat it for each individual enemy.
I figured it was something like that. Thank you for helping me double check.

Original thread: https://forums.rpgmakerweb.com/threads/cursed-mirror.70188/