Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Trigger Question
Trigger Question
Jul 23 2008, 6:00 pm
By: BaneOfRome  

Jul 23 2008, 6:00 pm BaneOfRome Post #1



I've been working on a Civilization World type map that is based on the Dungeons and Dragons game. One of the wonders that I have in the scenario gives the owner a random unit every minute or so. Unfortunately, I cannot find the trigger in order to do this. Can anyone explain to me how to make a random unit appear for a player?



None.

Jul 23 2008, 6:14 pm O)FaRTy1billion[MM] Post #2

👻 👾 👽 💪

You use Switch's Randomize state.
Falkoner's site has a nice switch tutorial (if you ignore the red and yellow colors :P.)

So, as an example I'll use two switches... If you are using more than like 4 switches it would be best to do the binary thingy where you add them all up.

Quick example... This just detects every single possibility.
Collapsable Box


Be careful how many siwtches you use... To figure out the possibilities, do 2x, where x is the number of switches. 21=2 possibilities, 22=4 possibilities, 23=8, possibilities, 24=16, 25=32, 26=64, etc.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jul 23 2008, 7:59 pm Falkoner Post #3



You can also use a death count in combination with a switch and just constantly randomize whether or add 1 or not to the death, and then when it's time to pick the unit, you can just decide which unit to pick based on what the death count currently is.



None.

Jul 23 2008, 9:04 pm BaneOfRome Post #4



I tried this but I ended up with a player having 5 hero battlecruisers that are supposed to be unique to a wonder. How do I fix this?

Post has been edited 1 time(s), last time on Jul 23 2008, 10:34 pm by BaneOfRome.



None.

Jul 23 2008, 10:12 pm Falkoner Post #5



It sounds like you didn't rerandomize the switches every time you checked them, so you got the same outcome every time, you have to randomize them each time.



None.

Jul 23 2008, 10:34 pm BaneOfRome Post #6



I did randomize them and I got a mixture of units but the problem was with the multiple unique units (instead of one unit every minute, I did one unit every five seconds).



None.

Jul 23 2008, 10:51 pm Falkoner Post #7



Oh... You may need a system that detects if it's a unique unit, then if it is, it rerandomizes and tries again.



None.

Jul 23 2008, 10:58 pm BaneOfRome Post #8



How do I do that?



None.

Jul 23 2008, 11:05 pm Falkoner Post #9



Set a switch at the time when a unit needs to be created, instead of immediately checking the random, then while the switch is set, randomize it, and on the conditions to create the unit, make sure that special unit isn't already out, and make sure the switch is set, and the switches are randomized in the correct combination. If all those conditions are met, create the unit and clear the switch, and have another trigger that randomizes if the switch is still set.



None.

Jul 24 2008, 1:26 am BaneOfRome Post #10



Ok, I get it now. Thanks :)



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[2026-7-26. : 3:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[2026-7-26. : 3:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[2026-7-26. : 3:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[2026-7-26. : 3:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: Symmetry