• 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.

Creating Units Help

Status
Not open for further replies.
Level 5
Joined
Feb 14, 2005
Messages
48
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?
 
Level 5
Joined
Feb 14, 2005
Messages
48
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
 
Level 7
Joined
Jul 30, 2004
Messages
451
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]
 
Level 4
Joined
Apr 8, 2005
Messages
70
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

Code:
Start timer as a repeating timer that will expire in 35 seconds
Set timer = LastStartedTimer
Create Timer Window for timer
Show timer window
 
Status
Not open for further replies.
Top