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

[REQ] [TRIGGER] - Randomizer

Status
Not open for further replies.
Level 14
Joined
Jul 28, 2009
Messages
1,086
Hey hives,
im in the need of a trigger that picks out a
random Teleport destination.

Just like in a mini game map,
the map starts up and picks out 1 of all the mini games,
& when that game is over, it picks a new one.


Thanks!

Credits & +Rep will ofc be givin.
 
Level 15
Joined
Oct 18, 2008
Messages
1,591
It's easy, if you can't do it after I explain a mini-game map is hopeless ^^
1. Create an array of points
2. Create the regions to which the players should arrive
3. Set Point[1] to the first region, point[2] to the second etc.
4. Make an integer variable (e.g. "X" here)
5. Use set X to math-random number between 1 and (your number)
6. Move every player to Point[X]
 
Status
Not open for further replies.
Top