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.
[02:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
[2026-9-25. : 2:22 pm]
Oh_Man -- https://youtu.be/Lfo4C0xzU04
[2026-9-25. : 12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[2026-9-24. : 11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[2026-9-24. : 10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[2026-9-24. : 8:12 pm]
Ultraviolet -- do you even lift bro?
[2026-9-23. : 5:21 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider yeh thts straight up cheating
the mutas yes, the wraiths probably not. Have you even watched the video? ;)
[2026-9-23. : 12:56 pm]
Oh_Man -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
yeh thts straight up cheating
[2026-9-23. : 12:24 pm]
Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
Please log in to shout.


Members Online: Zycorax, Oh_Man