Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Autospawn

Events


Time - Every 20.00 seconds of game time

Conditions

Actions


Unit - Create 3 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing (270.0) degrees


Unit - Create 1 Rifleman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing (270.0) degrees
Set variable

Events


Map initialization

Conditions

Actions


Set SpawnPoint = (Center of (Playable map area))
Spawn

Events


Time - Every 15.00 seconds of game time

Conditions

Actions


If ((All units of CreepGroup are dead) Equal to True) then do (Custom script: call DestroyGroup( udg_CreepGroup )) else do (Skip remaining actions)


For each (Integer A) from 1 to 3, do (Actions)



Loop - Actions




Unit - Create 1 Footman for Player 1 (Red) at SpawnPoint facing SpawnPoint




Unit Group - Add (Last created unit) to CreepGroup


Unit - Create 1 Rifleman for Player 1 (Red) at SpawnPoint facing SpawnPoint


Unit Group - Add (Last created unit) to CreepGroup
DotA Respawn

Events


Time - Every 30.00 seconds of game time

Conditions

Actions


Custom script: set bj_wantDestroyGroup = true


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Units within 512.00 of CreepSpawnPoint[1]) is empty) Equal to True



Then - Actions




Set CreepRandomNumber = (Random integer number between 1 and 3)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CreepRandomNumber Equal to 1





Then - Actions






Unit - Create 1 Forest Troll for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees






Unit - Create 1 Forest Troll for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees






Unit - Create 1 Kobold Taskmaster for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees





Else - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








CreepRandomNumber Equal to 2







Then - Actions








Unit - Create 1 Gnoll Assassin for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit - Create 1 Gnoll Assassin for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit - Create 1 Gnoll Assassin for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees







Else - Actions








Unit - Create 1 Fel Stalker for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit - Create 1 Fel Stalker for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit - Create 1 Ghost for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees



Else - Actions


Custom script: set bj_wantDestroyGroup = true


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Units within 512.00 of CreepSpawnPoint[2]) is empty) Equal to True



Then - Actions




Set CreepRandomNumber = (Random integer number between 1 and 3)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CreepRandomNumber Equal to 1





Then - Actions






Unit - Create 1 Polar Furbolg for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees






Unit - Create 1 Polar Furbolg Champion for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees





Else - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








CreepRandomNumber Equal to 2







Then - Actions








Unit - Create 1 Satyr Trickster for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees








Unit - Create 1 Satyr Soulstealer for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees








Unit - Create 1 Satyr Hellcaller for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees







Else - Actions








Unit - Create 1 Enraged Wildkin for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees








Unit - Create 1 Wildkin for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees








Unit - Create 1 Wildkin for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees



Else - Actions
My Suggestion

Events


Unit - A unit Dies

Conditions


(Owner of (Triggering unit)) Equal to Neutral Hostile

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Triggering unit) is in CreepGroup[1]) Equal to True




(All units of CreepGroup[1] are dead) Equal to True



Then - Actions




Unit Group - Remove all units from CreepGroup[1]




Wait 20.00 game-time seconds




Set CreepRandomNumber = (Random integer number between 1 and 3)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CreepRandomNumber Equal to 1





Then - Actions






Unit - Create 1 Forest Troll for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees






Unit Group - Add (Last created unit) to CreepGroup[1]






Unit - Create 1 Forest Troll for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees






Unit Group - Add (Last created unit) to CreepGroup[1]






Unit - Create 1 Kobold Taskmaster for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees






Unit Group - Add (Last created unit) to CreepGroup[1]





Else - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








CreepRandomNumber Equal to 2







Then - Actions








Unit - Create 1 Gnoll Assassin for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit Group - Add (Last created unit) to CreepGroup[1]








Unit - Create 1 Gnoll Assassin for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit Group - Add (Last created unit) to CreepGroup[1]








Unit - Create 1 Gnoll Assassin for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit Group - Add (Last created unit) to CreepGroup[1]







Else - Actions








Unit - Create 1 Fel Stalker for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit Group - Add (Last created unit) to CreepGroup[1]








Unit - Create 1 Fel Stalker for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit Group - Add (Last created unit) to CreepGroup[1]








Unit - Create 1 Ghost for Neutral Hostile at CreepSpawnPoint[1] facing 270.00 degrees








Unit Group - Add (Last created unit) to CreepGroup[1]



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(All units of CreepGroup[2] are dead) Equal to True






((Triggering unit) is in CreepGroup[2]) Equal to True





Then - Actions






Unit Group - Remove all units from CreepGroup[2]






Wait 20.00 game-time seconds






Set CreepRandomNumber = (Random integer number between 1 and 3)






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








CreepRandomNumber Equal to 1







Then - Actions








Unit - Create 1 Polar Furbolg for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees








Unit Group - Add (Last created unit) to CreepGroup[2]








Unit - Create 1 Polar Furbolg Champion for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees








Unit Group - Add (Last created unit) to CreepGroup[2]







Else - Actions








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










CreepRandomNumber Equal to 2









Then - Actions










Unit - Create 1 Satyr Trickster for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees










Unit Group - Add (Last created unit) to CreepGroup[2]










Unit - Create 1 Satyr Soulstealer for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees










Unit Group - Add (Last created unit) to CreepGroup[2]










Unit - Create 1 Satyr Hellcaller for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees










Unit Group - Add (Last created unit) to CreepGroup[2]









Else - Actions










Unit - Create 1 Enraged Wildkin for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees










Unit Group - Add (Last created unit) to CreepGroup[2]










Unit - Create 1 Wildkin for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees










Unit Group - Add (Last created unit) to CreepGroup[2]










Unit - Create 1 Wildkin for Neutral Hostile at CreepSpawnPoint[2] facing 270.00 degrees










Unit Group - Add (Last created unit) to CreepGroup[2]





Else - Actions
For each (Integer A) from 1 to 5, do (Actions)

Loop - Actions


Unit - Create 1 Footman for (Player((Integer A))) at (Center of (Playable map area)) facing Default building facing degrees
You can store the creeps in a unit group and check first if they are dead. Shouldn't be to hard. Use these triggers to make it leakless and working
Set variable
Events
Map initialization
Conditions
Actions
Set SpawnPoint = (Center of (Playable map area))
Spawn
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
If ((All units of CreepGroup are dead) Equal to True) then do (Custom script: call DestroyGroup( udg_CreepGroup )) else do (Skip remaining actions)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Unit - Create 1 Footman for Player 1 (Red) at SpawnPoint facing SpawnPoint
Unit Group - Add (Last created unit) to CreepGroup
Unit - Create 1 Rifleman for Player 1 (Red) at SpawnPoint facing SpawnPoint
Unit Group - Add (Last created unit) to CreepGroup
To Dr.Boom: I appreciate the help you are giving but I strongly recommend to learn how to remove leaks. With spawning triggers this can really slow the game