• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

random teams game mode

Status
Not open for further replies.
Level 1
Joined
Nov 3, 2009
Messages
1
i'm helping my clan make a game mode dialog box for our maps. it will have 4 options total, FFA, full house, random teams and 1v1, and i'm currently have trouble with my random team setting.

assuming there are 12 people in the game, i want to be able to evenly split them into random teams of 2, 3, 4, 5, or 6 players per team, but when i tested these, it would create the right number of teams, but there would not be an even number of players on each team.

for my 6-player team trigger, i have the following.

  • TEAMS SIX 2
    • Events
      • Dialog - A dialog button is clicked for TEAMMENU
    • Conditions
      • (Clicked dialog button) Equal to TEAMSIX
    • Actions
      • Trigger - Turn off AUTOSELECT <gen>
      • Game - Display to (All players) the text: Player 1 has chosen...
      • Wait 10.00 seconds
      • Leaderboard - Create a leaderboard for (All players) titled |cffff0000Random Te...
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player Group - Add (Random player from (All players)) to team6_1
          • Player Group - Add (Random player from (All players)) to team6_2
          • Player Group - Add (Random player from (All players)) to team6_1
          • Player Group - Add (Random player from (All players)) to team6_2
          • Player Group - Add (Random player from (All players)) to team6_1
          • Player Group - Add (Random player from (All players)) to team6_2
          • Player Group - Add (Random player from (All players)) to team6_1
          • Player Group - Add (Random player from (All players)) to team6_2
          • Player Group - Add (Random player from (All players)) to team6_1
          • Player Group - Add (Random player from (All players)) to team6_2
          • Player Group - Add (Random player from (All players)) to team6_1
          • Player Group - Add (Random player from (All players)) to team6_2
      • Player Group - Make team6_1 treat (All players) as an Enemy
      • Player Group - Make team6_2 treat (All players) as an Enemy
      • Player Group - Make team6_1 treat team6_1 as an Ally with shared vision
      • Player Group - Make team6_2 treat team6_2 as an Ally with shared vision
is there an alternative way to making this work, or can i add something in to make it balance the teams?

thanks in advance!
 
Status
Not open for further replies.
Top