• 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.

Need help Randomizing Teams

Status
Not open for further replies.
Level 2
Joined
May 6, 2009
Messages
4
Ok, so for my map i need a trigger that will:
-Reset the teams randomly when a timer runs out
-Give Points to Winning players
-Reset all the things that were killed and put them back in their places

and
-Reset the timer that ran out
Any help will be appretiated and try to remember the fact that i am a noob. :wink:
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
To reset teams, you'd most likely have to use an integer variable for each player, then randomize them and set players with integer X to team 1, and the players with integer Y to team 2.
For it to be balanced, you could also count the number of players on each team, I wonder if there's a function specifically for that. If not, you can simply create another 2 integer variables and add 1 point to them for each player with team 1. Repeat the process for team 2.

I doubt this will be clear if you're not a good triggerer, or at least good at Maths...
 
Status
Not open for further replies.
Top