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.
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[2024-5-08. : 10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
Please log in to shout.


Members Online: IlyaSnopchenko, Roy, NudeRaider