networkmncer
New Member
- Reaction score
- 0
Im using this trigger. How can I add this trigger? I want the spawn to have a condition were it needs all the creeps dead before spawning again. Someone? I dont know where to put that code below. I tried some but did not work.
to spawn timer
Trigger:
- Event
- timer expires
- Actions
- bj_wantDestroyGroup = true
- Wait until ((All units of (Units owned by Player 12 (Brown)) are dead)Equal to True), checking every 1.00 seconds
- Game - Display to (All players) the text: Countdown started...
- Countdown Timer - Start RoundWindow as a Repeating timer that will expire in 60.00 seconds
- Set RoundWindow = (Last started timer)
- Countdown Timer - Create a timer window for (Last started timer) with title Enemy Wave in...
to spawn timer
Trigger:
- Actions
- Game - Display to (All players) the text: Countdown started...
- Countdown Timer - Start RoundWindow as a Repeating timer that will expire in 60.00 seconds
- Set RoundWindow = (Last started timer)
- Countdown Timer - Create a timer window for (Last started timer) with title Enemy Wave in...
Trigger:
- Event
- Game Initialization
- Actions
- Set Lvl_num = 0
- -------- Level 1 --------
- Set unit_type[1] = Ghoul
- Set unit_type_var_two[1] = Troll
- Set unit_type_var_three[1] = Zombies
- Set unit_amount[1] = 3
- Set unit_amount_var_two[1] = 1
- Set unit_amount_var_three[1] = 1
- -------- Level 2 --------
- Set unit_type[2] = Troll
- Set unit_type_var_two[2] = Ghoul
- Set unit_type_var_three[2] = Zombies
- Set unit_amount[2] = 2
- Set unit_amount_var_two[2] = 2
- Set unit_amount_var_three[2] = 1
- -------- Level 3 --------
- Set unit_type[3] = Zombies
- Set unit_type_var_two[3] = Troll
- Set unit_type_var_three[3] = Light Trolls
- Set unit_amount[3] = 2
- Set unit_amount_var_two[3] = 2
- Set unit_amount_var_three[3] = 1
- ...
Trigger:
- Spawn
- Events
- Time - RoundWindow expires
- Conditions
- Actions
- Set Lvl_num = (Lvl_num + 1)
- For each (Integer A) from 1 to unit_amount[Lvl_num], do (Actions)
- Loop - Actions
- Set incrementx = 1
- Set incrementy = 1
- For each (Integer B) from 1 to 4, do (Actions)
- Loop - Actions
- Unit - Create 1 unit_type[Lvl_num] for Player 12 (Brown) at loc[incrementy] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To center of map
- Unit - Create 1 unit_type[Lvl_num] for Player 12 (Brown) at loc[(incrementy + 1)] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To center of map Set incrementx = (incrementx + 1)
- Set incrementy = (incrementy + 2)
- Wait 0.75 seconds
- For each (Integer A) from 1 to unit_amount_var_three[Lvl_num], do (Actions)
- Loop - Actions
- Set incrementx = 1
- Set incrementy = 1
- For each (Integer B) from 1 to 4, do (Actions)
- Loop - Actions
- Unit - Create 1 unit_type_var_three[Lvl_num] for Player 12 (Brown) at loc[incrementy] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To center of map
- Unit - Create 1 unit_type_var_three[Lvl_num] for Player 12 (Brown) at loc[(incrementy + 1)] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To center of map
- Set incrementx = (incrementx + 1)
- Set incrementy = (incrementy + 2)
- Wait 0.75 seconds
- For each (Integer A) from 1 to unit_amount_var_two[Lvl_num], do (Actions)
- Loop - Actions
- Set incrementx = 1
- Set incrementy = 1
- For each (Integer B) from 1 to 4, do (Actions)
- Loop - Actions
- Unit - Create 1 unit_type_var_two[Lvl_num] for Player 12 (Brown) at loc[incrementy] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To center of map
- Unit - Create 1 unit_type_var_two[Lvl_num] for Player 12 (Brown) at loc[(incrementy + 1)] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To center of map
- Set incrementx = (incrementx + 1)
- Set incrementy = (incrementy + 2)
- Wait 0.75 seconds