• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Need help with a Trigger for my TD!!!! plz help?!

Status
Not open for further replies.
Level 3
Joined
Dec 2, 2005
Messages
25
ok i know this is probably a n00by ? but ive never had any past experience with tds so heres my current trigger:

Events: Time elapsed is 30.00 seconds

Conditions: (None)

Actions:


Wait 1.00 Seconds

Unit-create 1 (unit) for (player a at (center of playable map area)facing (default degrees)

Wait 1.00

Unit-create 1 (unit) for (player a at (center of playable map area)facing (default degrees)

(Rinse and repeat about 20 times, so 1 unit spawns at a time, not 20 at once.)

Is ther any way i can go create 1 (unit) repeating every second without having to waste hours doing one at a time. and going over an over with the same conditions, wait a second create, wait a second creat, wait a second creat, etc...)

PLZZZZZ HELP IF YOU KNOW I WOULD BOW TO U!!!
 
Level 7
Joined
Jul 30, 2004
Messages
451
option A:

calling trigger turns on trigger P when you start spawning

trigger P
event: periodic every 1 second
body:
if (count > 19) then
-- turn off this trigger
else
-- count = count + 1
-- spawn unit
-- move unit
-- etc...


option B:

use your current trigger

body:
for (loop integer A from 0 to 19) do
-- spawn unit
-- etc...
-- wait 1 second



i guess theres other ways if you want, but those are the fastest
 
Status
Not open for further replies.
Top