• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need help Randomizing Teams

Status
Not open for further replies.

XxSleevesxX

X

XxSleevesxX

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:
 
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.
Back
Top