# Trigger Problem

Status
Not open for further replies.

#### wickedcool

Level 6
guys theres a problem w/ the trigger can you figure it out what is the problem w/ this
• init
• Events
• Time - Elapsed game time is 0.00 seconds
• Conditions
• Actions
• Countdown Timer - Start timer as a One-shot timer that will expire in 20.00 seconds
• Countdown Timer - Create a timer window for (Last started timer) with title Prepare for Battle
• Trigger - Turn on periodic <gen>
• periodic
• Events
• Time - Elapsed game time is 20.00 seconds
• Conditions
• chk Equal to False
• Actions
• Unit - Create 5 (Random level 2 creep unit-type) for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
• Unit Group - Add (Last created unit) to group
• timer
• Events
• Time - timer expires
• Conditions
• Actions
• Set chk = True
• Countdown Timer - Destroy (Last created timer window)
• unit dies
• Events
• Unit - A unit Dies
• Conditions
• Actions
• Unit Group - Remove (Triggering unit) from group
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (group is empty) Equal to True
• Then - Actions
• Set chk = False
• Countdown Timer - Start timer as a One-shot timer that will expire in 20.00 seconds
• Countdown Timer - Create a timer window for (Last started timer) with title spawns
• Else - Actions
i try to test this trigger
when player 1 kills one creep the timers starts to make an error

#### Attachments

• SpawnTimer.w3x
17.5 KB · Views: 41

#### rysnt11

Level 17
You make timer 'every' time a unit dies...
So, if your hero kills 100 unit, then the timer would created 100 times too...

#### Maker

Level 37
• Unit Group - Add all units of (Last created unit group) to group

#### wickedcool

Level 6
• Unit Group - Add all units of (Last created unit group) to group
where can i put this trigger

#### rysnt11

Level 17
After creating the units

Level 9
When are we going to tell him that this the wrong section..

Level 6
yeah i forgot
but thnks

#### wickedcool

Level 6
sorry for double posting
You make timer 'every' time a unit dies...
So, if your hero kills 100 unit, then the timer would created 100 times too...
what do you mean
and how to make it into wave style system

#### GIANT_CRAB

Level 12
You make timer 'every' time a unit dies...
So, if your hero kills 100 unit, then the timer would created 100 times too...

No, the trigger he had, will check if that group is empty or not empty.

#### wickedcool

Level 6
hey do you know how to make it a wave system

Level 9
Wave as in a tower defense?

#### wickedcool

Level 6
wave just like a tower defense
im making hero defense

#### rysnt11

Level 17
I think there's one in the map section, seacrh the template ones

#### ThaAthael

Level 5
Check this
Should answer half of your questions.Doing some stuff yourself (practicing), should bring you much further than the 100th request for some simple stuff.. please don't misunderstand me, I'm not trying to flame or troll you, but since you're going to need a lot of triggers when creating a defense map, you'll sooner or later need to learn triggering yourself and the sooner you start, the better.
And believe me, I'm working a hero and a tower defense myself, the more I try to do things myself, the more interesting and appealing the spells - and even the ideas to them! - become.

Status
Not open for further replies.

Replies
11
Views
577
Replies
3
Views
719
Replies
6
Views
1K
Replies
2
Views
585
[Trigger] Countdown Timer
Replies
8
Views
508