Unit Spawns
This topic is locked. You can no longer write replies here.
Feb 8 2010, 11:08 pm
By: Maximus  

Feb 8 2010, 11:08 pm Maximus Post #1



I am trying to make a helms-deep style map and I am wondering how to do the triggers for unit spawns.

For the masses i use the triggers

Condition
Player controls at least 1 any unit

Actions
Spawn x units at location x for player
preserve trigger

that trigger seems to work fine...just wanted to make sure it was alright...

Now where my trouble comes in...

Im trying to spawn units by time based..

Ive tried all 3 of these conditions and all 3 failed.

Elapsed scenario time is at least 180 second
Elapsed scenario time is at most 180 seconds
Elapsed scenario time is exactly 180 secods

None of them seem to work for for me...the one only spawned once and the other just massed spawn..Any help would be greatly appreciated.



None.

Feb 8 2010, 11:19 pm ImagoDeo Post #2



Elapsed Scenario Time is a time count that goes up from the start of the scenario. It cannot be modified. So, for example, if three minutes have passed since the start of the game, then Elapsed Scenario Time = 180 Seconds will be true and Elapsed Scenario Time > 180 Seconds will be true, but Elapsed Scenario Time < 180 Seconds won't be true.

So At Most will spawn until 180 seconds have passed; Exactly will spawn when exactly 180 seconds have passed; and At Least will spawn continuously once at least 180 Seconds have passed.

Do you get it?

Here, you should use these instead: Death Counters

Post has been edited 1 time(s), last time on Feb 8 2010, 11:25 pm by ImagoDeo.



None.

Feb 8 2010, 11:20 pm rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

I'm a proponent of the "holy crap its an army of 10,000" method of doing massing. How does it make sense that you get reinforcements every 180 seconds?

I suggest you create a fixed number of units you can have at any time. Say, 100 melee, 60 archers. When you have less than 75 melee, create 25 more. When you have less than 45 archers, create 15 more. Coupled with a sticky mass, you can just sit and let the units do all the work.

Now if you really don't like that idea, and you want to have reinforcements spawn when you either have very few men left, or when you've sat there for 3 minutes, you can use the countdown timer to be 3 minutes. When it reaches 0, create the units you want to make, then set it to 180 seconds.

Elapsed time is an ever increasing variable, which you can't modify. The condition can be used for unit spawns, but it's better to base things off of a timer. (for example, have the countdown timer be 45 minutes, at 3 minute intervals you spawn reinforcements).

I also suggest you use hyper triggers (check the wiki/sticky), but be careful with preserved triggers like order. You'll want to put a delay on any such orders via death counts.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Feb 8 2010, 11:20 pm Aristocrat Post #4



Use a death count counter and add 1 death every trigger run (make sure there are no hyper triggers/waits). When you reach 90 deaths spawn units and set DC to 0.



None.

Feb 8 2010, 11:27 pm Maximus Post #5



Yeah rocks...I use your method for my main masses. The time trigger is for smaller hero spawns.



None.

Feb 9 2010, 2:02 am rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

Death counts is the way to go then.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Feb 9 2010, 4:04 am Maximus Post #7



You can lock this...a personal friend taught me how to use death counts..



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[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.
[03:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[03:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[03:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[03: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]
[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.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
Please log in to shout.


Members Online: Heinermann