Warcraft III resources & community, 2003–2006 · archived

Creating Units Help

6 posts
#1

Creating Units Help

Im making a td, and I cant make the units spawn.

The trigger is like this

Event- Timer Expires
Condition- Level = 0
Action- Create 10 Footmen at Spawn 1

BUT that doesnt work, the timer expires, yet no units are created, does anyone know whats wrong?
#2
based on that small snip i can't say much but only ask a few questions

is the timer set to the right variable? even if a timer expires if theres no refence it won't fire
is level actually set to 0
#3
Yea, the timer is set to the right variable.

I used

Set timer = LastStartedTimer
Start timer as a repeating timer that will expire in 35 seconds
Create Timer Window for timer
Show timer window
------------------------------------
For the level thing I just made it
Set level = 0
#4
umm, as long as it really is the variable you set as the timer expiring, and level is = to 0, then there as absolutely no reason the trigger won't run when that timer expires

but here are a series of debug steps you can go through
1) switch the event to time elapsed or typed message or something
-- if it works, that means your timer is not set or not expiring
2) remove the condition
-- if it works, that means your condition is false
3) add a text message in the trigger actions
-- if you see the message that means somethigns wrong with making the units[/img]
#5
Set timer = LastStartedTimer
Start timer as a repeating timer that will expire in 35 seconds
Create Timer Window for timer
Show timer window


Your setting 'timer' to the LastStartedTimer Then your starting the timer...

Wouldn't it make much more sence to start the timer then set timer to LastStartedTimer? :D

Start timer as a repeating timer that will expire in 35 seconds
Set timer = LastStartedTimer
Create Timer Window for timer
Show timer window
#6
azalgathYour setting 'timer' to the LastStartedTimer Then your starting the timer...

Wouldn't it make much more sence to start the timer then set timer to LastStartedTimer? :D


wow, and thats what happens when i read too fast, don't even see things