I'm having a creep spawning issue here, after you kill all the units bandit and brigand in the first 2 regions the next creeps don't spawn.
Here is the trigger.
The creeps have been set in the map initilization
Here is the trigger.
Code:
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Destructible - Close West_Gate[Spawn_Number]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Spawn_Number Equal to 3
Then - Actions
Set Spawn_Number = 1
Else - Actions
Set Spawn_Number = (Spawn_Number + 1)
Destructible - Open West_Gate[Spawn_Number]
Set Spawn_Type_Number = (Spawn_Type_Number + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in West_Creeps) Greater than or equal to 8
Then - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in West_Creeps) Greater than or equal to 4
Then - Actions
For each (Integer A) from 1 to (8 - (Number of units in West_Creeps)), do (Actions)
Loop - Actions
Unit - Create 1 Spawn_Type_West[Spawn_Type_Number] for Neutral Hostile at West_Spawn_Point[Spawn_Number] facing 180.00 degrees
Unit Group - Add (Last created unit) to West_Creeps
Unit - Order (Last created unit) to Attack-Move To West_Move_Point[Spawn_Number]
Else - Actions
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
Unit - Create 1 Spawn_Type_West[Spawn_Type_Number] for Neutral Hostile at West_Spawn_Point[Spawn_Number] facing 180.00 degrees
Unit Group - Add (Last created unit) to West_Creeps
Unit - Order (Last created unit) to Attack-Move To West_Move_Point[Spawn_Number]
The creeps have been set in the map initilization
Code:
Set Spawn_Type_West[1] = Bandit
Set Spawn_Type_West[2] = Brigand
Set Spawn_Type_West[3] = Rogue
Set Spawn_Type_West[4] = Assassin
Set Spawn_Type_West[5] = Enforcer
Set Spawn_Type_West[6] = Bandit Lord