• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[REQ] [TRIGGER] - Randomizer

Status
Not open for further replies.
Level 14
Joined
Jul 28, 2009
Messages
1,085
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,588
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