Warcraft III resources & community, 2003–2006 · archived

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

3 posts
#1

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

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!!!
#2
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
#3
thanks lol but i figured it out right after i posted :) but i might use the first way u put raptor!! thanks