hi, first of all I'm a beginner on world editor and im having some trouble with timers ! (i can't find an answer to my problem with the tutorials so im asking here).
Ok so im making a simple TD map, everything was fine until i try to use 2 timers to spawn waves. So here is how i actually do the thing :
- 5 triggers (init,creep,timer,waves,food)
init :
cheers!
Ok so im making a simple TD map, everything was fine until i try to use 2 timers to spawn waves. So here is how i actually do the thing :
- 5 triggers (init,creep,timer,waves,food)
init :
-
INIT
-
Events
-
Time - Elapsed game time is 15.00 seconds
-
-
Conditions
-
creep_level Equal 0
-
-
Actions
-
Quest - Display to (All players) the Avertissement message: |cff995500First lev...
-
Time - Create a timer window for creep_timer_init with title Next level spawn in...
-
Set MyTimerWindow_1 = (Last created timer window)
-
Time - Show MyTimerWindow_1
-
Time - Start creep_timer_init as a Un coup timer that will expire in 20.00 seconds
-
-
-
Creep
-
Events
-
Time - creep_timer_init expires
-
-
Conditions
-
creep_level Equal 0
-
-
Actions
-
Time - Destroy MyTimerWindow_1
-
Set creep_level = 1
-
-------- LEVEL 1 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
creep_level Equal 1
-
-
Then - Actions
-
Set creep_level = (creep_level + 1)
-
Set creep_food = 35
-
Quest - Display to (All players) the Avertissement message: Level 1 - Sheep
-
Unit - Create 35 Level 1 - Sheep for Joueur 12 (Marron) at (Center of Spawn rouge <gen>) facing Orientation bâtiment par défaut degrees
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
Timer
-
Events
-
Unit - A unit owned by Joueur 12 (Marron) Meurt
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
creep_food Equal 0
-
-
Then - Actions
-
Wait 1.00 seconds
-
Time - Create a timer window for creep_timer_spawn with title Next level in :
-
Set MyTimerWindow_2 = (Last created timer window)
-
Time - Montrer MyTimerWindow_2
-
Time - Start creep_timer_spawn as a Un coup timer that will expire in 20.00 seconds
-
-
Else - Actions
-
-
-
-
Waves
-
Events
-
Time - creep_timer_spawn expires
-
-
Conditions
-
creep_level Supérieur ou égal Ã* 1
-
-
Actions
-
Time - Destroy MyTimerWindow_2
-
-------- LEVEL 2 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
creep_level Equal 2
-
-
Then - Actions
-
Set creep_level = (creep_level + 1)
-
Set creep_food = (creep_food + 35)
-
Quest - Display to (All players) the Avertissement message: Level 2 - Chicken
-
Unit - Create 35 Level 2 - Chicken for Joueur 12 (Marron) at (Center of Spawn rouge <gen>) facing Orientation bâtiment par défaut degrees
-
-
Else - Actions
-
Game - Display to (All players) the text: BUG MAP !!!
-
-
-
-------- LEVEL 3 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
creep_level Equal 3
-
-
Then - Actions
-
Set creep_level = (creep_level + 1)
-
Set creep_food = (creep_food + 35)
-
Quest - Display to (All players) the Avertissement message: Level 3 - Pingu
-
Unit - Create 35 Level 3 - Pingouin for Joueur 12 (Marron) at (Center of Spawn rouge <gen>) facing Orientation bâtiment par défaut degrees
-
-
Else - Actions
-
Game - Display to (All players) the text: BUG MAP !!!
-
-
-
-------- LEVEL 4 --------
-
-
-
Food
-
Events
-
Unit - A unit owned by Joueur 12 (Marron) Meurt
-
-
Conditions
-
Actions
-
Set creep_food = (creep_food - 1)
-
Game - Display to (All players) the text: (String(creep_food))
-
-
cheers!

Last edited: