im making a map where when you create a building, it spawns a unit to a location, then the unit attacks towards the other team.
depending on how many of one building u build, depends on how many units spawn and keep massing
you build 1 barrack, it spawns 1 rine that attacks towards the other team
you build 2 barracks, it spawns 2 rines that attacks... ect
up to 4
so i need a trigger that every 10 seconds it will continue to spawn the same amount of units depending on how many buildings i have
if u need more detail, feel free to ask.
thanks!
None.
I can type out all the exact triggers for you, but it's better if you do it.
Current Player commands exactly [1-4] Barracks
Current Player has suffered exactly 0 deaths of Cantina
Create [1-4] marines for current player at location
Order all marines at location attack to location2
Modify deaths of Cantina for Current Player: Set to 119
Always
Modify deaths of Cantina for Current Player: Subtract 1
Make sure you use hyper triggers (if you don't, change the 119 to 5-6 to suit your needs). Repeat the first trigger four times, using 1, 2, 3, and 4 for the barracks/create line.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
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
Make sure you use hyper triggers (if you don't, change the 119 to 5-6 to suit your needs). Repeat the first trigger four times, using 1, 2, 3, and 4 for the barracks/create line.
With hypers triggers are checked 8 times a game second, which about 12 times per real time second.
Without hypers triggers are checked once every 2 game seconds which is about once every 1,5 seconds.
Therefore the value of 120 deaths (=10 real time seconds on speed 7) corresponds to 7-8 deaths when not using hypers.
But I recommend using game time when setting up timers because if you decide to make a countdown timer for something or base a trigger on elapsed scenario there would be no confusion. It's just a matter of definition if you say 10s real time, its 15s game time, but that way you make sure to keep your timings consistent.
I can type out all the exact triggers for you, but it's better if you do it.
Current Player commands exactly [1-4] Barracks
Current Player has suffered exactly 0 deaths of Cantina
Create [1-4] marines for current player at location
Order all marines at location attack to location2
Modify deaths of Cantina for Current Player: Set to 119
Always
Modify deaths of Cantina for Current Player: Subtract 1
Make sure you use hyper triggers (if you don't, change the 119 to 5-6 to suit your needs). Repeat the first trigger four times, using 1, 2, 3, and 4 for the barracks/create line.
sorry if this is a dumb question, but what is Cantina?
None.
It's just a random unused unit, it's not actually a usable unit(except for crashing) so it's the perfect unit to use for Death Counts.
None.
http://en.wikipedia.org/wiki/CantinaI use the unused death counts all the time, and cantina is typically the first one that I pick.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
dang, i think im doing something wrong, i did those exact triggers and i used the hyper trigger and all it did was spawn two rines and never spawned anymore
i'll attach the map
Attachments:
None.
1.
Don't protect your map, it makes it that much harder to help you. nvm, SCMDraft didn't like it for some reason, but Starforge could open it. In any case, SCMDraft is a much better editor. If you used SCMDraft, there's some bug somehow with something, I don't know what.
2. Preserve Trigger.
3. I gave you two triggers, not one jumbled together.
4. Hyper triggers are just 3 triggers, each with the Always condition, and 63 wait (0)s, and a preserve trigger.
Post has been edited 1 time(s), last time on Jul 31 2008, 9:46 am by rockz.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
This is a test map with what you want.
Post has been edited 1 time(s), last time on Jul 31 2008, 9:34 am by KyleIs1337.
None.
thanks!
sorry i didnt know my map was protected
None.
Why did you protect it (going off of chiodos' word) if it's an example map?
None.
If he made it in SF, there's a good chance it was purely accidental.
None.
Yes i made it in SF. Just OSMAP it or open it in SF yourself.
None.
alright so i used the triggers from your trigger help map that you provided, and it works perfect, for barracks,
then i changed the code for armory, engineering bay, science lab ect, and i changed the units to the appropriate structure.
but now, it only is working with rines with the barracks.
i want it to be able to spawn, all different units while it still spawns the rines and other units at the same time corresponding to the amount of structures u build
i'll attach the map
Attachments:
None.
I had a long reply written out, but I pressed back on my mouse by accident so it's gone.
Short version: the marine spawn is setting zerg defiler deaths to 119, thus ruining all the other spawns from ever occurring. Delete that action in all the spawn triggers, make a new trigger at the end of the list.
Current player suffered 0 deaths of defiler
Set deaths to 119 for defiler.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"