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-4-29. : 2:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: NiceNowIHaveAName, anoeth47