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.
[05:01 pm]
NudeRaider -- Vrael
Vrael shouted: because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
given Moose's post I don't think he had to guess. ^^
[04:53 pm]
NudeRaider -- lil-Inferno
lil-Inferno shouted: Nude why'd you delete my shout
why not? :awesome:
[04:26 pm]
Vrael -- because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
[03:58 pm]
lil-Inferno -- sadjfjkasdhfijsadhmfcjhsdajkvfmjadslkfhjsdkahf
[03:58 pm]
lil-Inferno -- Nude why'd you delete my shout
[03:35 pm]
NudeRaider -- never trust a statistic you haven't forged yourself
[04:37 am]
Ultraviolet -- 80% of statistics are made up on the spot
[2026-6-08. : 8:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
Please log in to shout.


Members Online: Symmetry, Ultraviolet