Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: selecting random units
selecting random units
Dec 9 2008, 6:03 pm
By: TroX.  

Dec 9 2008, 6:03 pm TroX. Post #1



hello :D
i understand how random triggers work, but this is confusing me:

i have 10 turrets for player 7, each stacked 10, so 100 turrets. is it possible to give random ones to a player when they request it. if i just center a location over them it goes in a certain order, and to do it with random triggers would take hundreds of triggers.

im just starting map making again so sorry if im missing something obvious.

thanks!



None.

Dec 9 2008, 9:05 pm NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Let a death counter count from 0 to 99 and when you want to select a random turret you give that amount of turrets to another player and then give 1 of original player to the target player. Then give all turrets back.

The give random amount trigger would look like this:
IF Death counter 'random' is at least 1
THEN give 1 turret from Player X to Y

You have to copy this trigger 100 times if you want it to happen instantly.

The value of the death counter obviously depends on time. So it is recommended that you use hyper triggers so the outcome isn't predictable from recent previous outcomes.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-8-06. : 2:41 am]
Oh_Man -- i used to play TF2 competitive in that clan, and also was PR manager (ie: i wrote all the website posts)
[2026-8-06. : 2:41 am]
Oh_Man -- another fun fact iaguz actually joined the clan i was part of - Frenetic Array
[2026-8-06. : 2:40 am]
Symmetry -- Human memory is a fragile, fallible thing
[2026-8-06. : 2:39 am]
Oh_Man -- i realised all his shit was halluc and i wiped out his measly army of fake hallucs and he called GG - yeah thts wat actually happened damn false memory strikes again
[2026-8-06. : 2:38 am]
Oh_Man -- i was zerg, the toss guy did a bunch of hallucinates, and i was like, welp, i guess i'm dead, but i have that mindset of never giving up, so attacked him anyway, then tht was wen
[2026-8-06. : 2:38 am]
Oh_Man -- coz i was actually a zerg main, so wat ACTUALLY happened was a complete reverse of this
[2026-8-06. : 2:37 am]
Oh_Man -- i found an old comment of mine i actually think the idra thing over-ride my own memory
[2026-8-06. : 2:22 am]
Symmetry -- was it idra
[2026-8-06. : 1:52 am]
NudeRaider -- Oh_Man
Oh_Man shouted: and i went on to win the tournament, and a pair of steelseries headphones. i even reember how i won the final match - hallucinated a fck-tonne of units and my opponent thought i had way more than he did and GGed
classic
[2026-8-05. : 2:56 pm]
Oh_Man -- long story short - patience is a virtue!
Please log in to shout.


Members Online: Roy, Moose