Trigger Help :/
This topic is locked. You can no longer write replies here.
Jul 30 2008, 7:19 am
By: chiodos92307  

Jul 30 2008, 7:19 am chiodos92307 Post #1



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! :D



None.

Jul 30 2008, 8:18 am rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

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?"

Jul 30 2008, 9:21 am NudeRaider Post #3

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

Quote from rockz
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.




Jul 30 2008, 10:48 pm chiodos92307 Post #4



Quote from rockz
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.

Jul 30 2008, 10:59 pm Falkoner Post #5



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.

Jul 31 2008, 4:23 am rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

http://en.wikipedia.org/wiki/Cantina

I 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?"

Jul 31 2008, 8:48 am chiodos92307 Post #7



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:
NEWNEW(2).scx
Hits: 2 Size: 35.51kb



None.

Jul 31 2008, 9:00 am rockz Post #8

ᴄʜᴇᴇsᴇ ɪᴛ!

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?"

Jul 31 2008, 9:27 am KyleIs1337 Post #9



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.

Jul 31 2008, 9:36 am chiodos92307 Post #10



thanks!
sorry i didnt know my map was protected :/



None.

Jul 31 2008, 9:42 am KyleIs1337 Post #11



So did it work?

Post has been edited 1 time(s), last time on Jul 31 2008, 6:31 pm by Clokr_. Reason: wtf?



None.

Jul 31 2008, 5:25 pm The_z0r Post #12



Why did you protect it (going off of chiodos' word) if it's an example map?



None.

Jul 31 2008, 7:31 pm Falkoner Post #13



If he made it in SF, there's a good chance it was purely accidental.



None.

Aug 1 2008, 2:12 am KyleIs1337 Post #14



Yes i made it in SF. Just OSMAP it or open it in SF yourself.



None.

Aug 3 2008, 6:30 am chiodos92307 Post #15



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:
NEWNEW(2).scx
Hits: 1 Size: 37.65kb



None.

Aug 3 2008, 7:35 am rockz Post #16

ᴄʜᴇᴇsᴇ ɪᴛ!

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?"

Aug 4 2008, 12:33 am chiodos92307 Post #17



Sweet it works! thanks!

Post has been edited 1 time(s), last time on Aug 4 2008, 12:52 am by chiodos92307.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: lil-Inferno, Roy