Spawn triggers

Vengeance383

New Member
Reaction score
0
I'm in the process of making a map to just screw around with for ideas, but I wanted to know was how to make that makes units start spawning after a certain amount of time passed.

example:I already have zerglings spawning every 25 seconds, and I want to roaches to start spawning every 25 seconds, but not until 4 minutes(240 seconds)of game time has passed.

How would I make that happen?

Any help is much appreciated thank you.
 

sidove

Member
Reaction score
22
I am wc3 editor but i belive it will be same in SC2

Someting like

Event
Game - Time - After 200 seconds past do
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
I'd make one trigger that spawns roaches every 25 seconds and have it initially off and then make another trigger that turns it on after 200s.
 

Rainther

I guess I should write something of value here...
Reaction score
61
Siretu's solution is the one I'd recommend.

That would results in 3 triggers:

1 that runs each 25 second and spawns Zerglings
1 that runs each 25 second and spawn Roaches (but is initially turned off)
1 that runs once after 200 seconds and activates the 2nd trigger
 

Vengeance383

New Member
Reaction score
0
So how would I make the trigger look

Example:

Event: (triggering Timer) Expires?
Local variables:?
Conditions:?
Actions:?

What would I put in those. Sorry if it's too much trouble
 

skelieman

New Member
Reaction score
0
Event: Map initialization
Action: Have it create roaches where ever you wanted at the time
What you need to do however is right click and disable it I believe is how you do it.

After that create another trigger that says when however many seconds pass as the event then enable the other trigger and than disable the other trigger. Sorry I am still a little new but that's how it should work.
 

Vengeance383

New Member
Reaction score
0
:banghead:Okay I figured out how to make them spawn after the time I wanted, but now I have a new problem. They only spawn once, the zerglings keep spawning, but the roaches only spawn once. Any thoughts?
 

Dave312

Censored for your safe viewing
Reaction score
269
You need to use two triggers for the roaches. The first needs to be a carbon copy of the zergling trigger except it spawns roaches and that it is initially turned off (make sure the event is the same). The second trigger needs to have the event Elapsed game time is 240 seconds with the action to turn on the spawn roaches trigger.
 

Vengeance383

New Member
Reaction score
0
You need to use two triggers for the roaches. The first needs to be a carbon copy of the zergling trigger except it spawns roaches and that it is initially turned off (make sure the event is the same). The second trigger needs to have the event Elapsed game time is 240 seconds with the action to turn on the spawn roaches trigger.

Okay I did that, but now the roaches only spawn once and then they don't spawn any more.
 

Dave312

Censored for your safe viewing
Reaction score
269
Could you please post your trigger? That will be the easiest way for someone to solve this issue.
 

Vengeance383

New Member
Reaction score
0
Here is the trigger that spawns my roaches

Roach Spawn
Events: Timer : every 30 seconds of real time
Actions:General- If (conditions) then do (actions) else (actions)
If:Blank
then: Player-Modify player 15 handicap: add 7
Unit-Create 3 roach for player 15 at point 004 facing (random angle) degrees (no options)

Here's my other trigger

Roach spawn Countdown
Events: elapsed timer is 60 seconds of real time
actions: Trigger- run Roach Spawn (check conditions, don't wait until it finishes)

Those are both the triggers thanks for any input
 

Dave312

Censored for your safe viewing
Reaction score
269
The issue would in your if statement. Try removing and keeping your actions underneath it. It should look like this:

Trigger:
  • Roach Spawn
    • Events
      • Timer - Every 30.0 seconds of Real Time
    • Local Variables
    • Conditions
    • Actions
      • Player - Modify player 15 Handicap: Add 7
      • Unit - Create 3 Roach for player 15 at point 004 facing (Random angle) degrees (No Options)


Your other trigger should be fine.
 

Dave312

Censored for your safe viewing
Reaction score
269
Finally I figured it out. In your Roach spawn Countdown trigger, you are telling the trigger to run rather than turning it on. You need to use the action Turn Trigger On/Off
 

Vengeance383

New Member
Reaction score
0
Thanks bud, the map works pretty good, now I just need to figure out how to make my scv build photon cannons, among other things D:
 
General chit-chat
Help Users
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top