I am having trouble with my Level 2 it doesn't seem like it wants to work. Can anyone tell me what is going on here.
Trigger:
Middle Setup
Events
Time - Elapsed game time is 10.00 seconds
Conditions
Actions
-------- Level 1 --------
Wait 0.05 seconds
Set i = 1
Set unitSupport[i] = 5
Set unitTypeA[i] = Hound 1
Set unitTypeB[i] = Wolf 2
Set unitTypeC[i] = Hound 1
Set unitAmountA[i] = (20 x PlayerPlaying)
Set unitAmountB[i] = 0
Set unitAmountC[i] = (12 x PlayerPlaying)
Set roundComplete[i] = 50
Set unitWaitA[i] = 6.00
Set unitWaitB[i] = 4.00
Set unitWaitC[i] = 2.00
Set unitTotal[i] = (1 x (unitAmountA[i] + (unitAmountB[i] + unitAmountC[i])))
-------- Level 2 --------
Wait 0.05 seconds
Set i = (i + 1)
Set unitSupport[i] = 5
Set unitTypeA[i] = Wolf 2
Set unitTypeB[i] = Hound 1
Set unitTypeC[i] = Wolf 2
Set unitAmountA[i] = (20 x PlayerPlaying)
Set unitAmountB[i] = (8 x PlayerPlaying)
Set unitAmountC[i] = (12 x PlayerPlaying)
Set roundComplete[i] = 100
Set unitWaitA[i] = 6.00
Set unitTotal[i] = (1 x (unitAmountA[i] + (unitAmountB[i] + unitAmountC[i])))
Here is the Middle Spawn
Trigger:
Middle Spawn
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempA Greater than or equal to 1
Then - Actions
Unit - Create 1 unitTypeA[Level] for (Random player from Zombies) at (Random point in North <gen>) facing Default building facing degrees
Unit - Create 1 unitTypeA[Level] for (Random player from Zombies) at (Random point in West <gen>) facing Default building facing degrees
Unit - Create 1 unitTypeA[Level] for (Random player from Zombies) at (Random point in South <gen>) facing Default building facing degrees
Unit - Create 1 unitTypeA[Level] for (Random player from Zombies) at (Random point in East <gen>) facing Default building facing degrees
Set tempA = (tempA - 4)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempB Greater than or equal to 1
Then - Actions
Wait unitWaitB[Level] seconds
Unit - Create 1 unitTypeB[Level] for (Random player from Zombies) at (Random point in North <gen>) facing Default building facing degrees
Unit - Create 1 unitTypeB[Level] for (Random player from Zombies) at (Random point in South <gen>) facing Default building facing degrees
Unit - Create 1 unitTypeB[Level] for (Random player from Zombies) at (Random point in East <gen>) facing Default building facing degrees
Unit - Create 1 unitTypeB[Level] for (Random player from Zombies) at (Random point in West <gen>) facing Default building facing degrees
Set tempB = (tempB - 4)
Else - Actions
Do nothing
Wait unitWaitA[Level] seconds
Trigger - Run (This trigger) (checking conditions)
Else - Actions
Do nothing
The game detects the Next level so I will show you the final part.
Trigger:
Next Level Setup
Events
Conditions
Actions
Game - Display to (All players) the text: (You Completed Level + ((String(Level)) + !))
Wait 0.05 seconds
Set Level = (Level + 1)
Leaderboard - Change the title of (Last created leaderboard) to (Total Kills (Level + ((String(Level)) + )))
Wait 0.05 seconds
Set tempA = unitAmountA[Level]
Set tempB = unitAmountB[Level]
Set tempC = unitAmountC[Level]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Level Equal to 2
Then - Actions
Countdown Timer - Start (Last started timer) as a Repeating timer that will expire in 60.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title Next Level in:
Countdown Timer - Show (Last created timer window)
Wait 60.00 seconds
Countdown Timer - Hide (Last created timer window)
Player Group - Pick every player in Alliance and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
Unit - Move (Picked unit) instantly to (Center of Center <gen>)
Unit - Create unitSupport[Level] PlayerUnitType[(Player number of (Picked player))] for (Picked player) at (Random point in Center <gen>) facing Default building facing degrees
Camera - Pan camera for (Picked player) to (Center of Center <gen>) over 3.00 seconds
Wait 5.00 seconds
Trigger - Run Middle Spawn <gen> (checking conditions)
Trigger - Run Tower Spawn <gen> (checking conditions)
Else - Actions
Do nothing
Else - Actions
Countdown Timer - Start (Last started timer) as a Repeating timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title Next Level in:
Countdown Timer - Show (Last created timer window)
Wait 30.00 seconds
Countdown Timer - Hide (Last created timer window)
Player Group - Pick every player in Alliance and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
Unit - Move (Picked unit) instantly to (Center of Center <gen>)
Unit - Create unitSupport[Level] PlayerUnitType[(Player number of (Picked player))] for (Picked player) at (Random point in Center <gen>) facing Default building facing degrees
Camera - Pan camera for (Picked player) to (Center of Center <gen>) over 3.00 seconds
Wait 5.00 seconds
Trigger - Run Middle Spawn <gen> (ignoring conditions)
Trigger - Run Tower Spawn <gen> (checking conditions)
Else - Actions
Do nothing
If you have any questions on how it works please ask and I will try to explain it or show you the map.
if anyone is interested in this. The correction I made that fixed it was in the "Next Round". Simply I moved the Trigger run out of Player group and made it have its only function.