If 3 participants are defined, participant1 will fight participant2 and participant3 in a double battle. If 4 participants are defined, participant1 and participant2 will fight participant3 and participant4 in a double battle. The same Player or NPC Trainer can be set for both slots on one side of a double battle, making them participate with 2 Pokmon.