kay... i'd like a neutral creep spawn / respawn ... such as in dota...
but without that function jiberish
...
Neutral Spawn Types
Events
Conditions
Actions
Set NeutralCreepCount = 3
Set NeutralTypes[1] = Peasant
Set NeutralTypes[2] = Footman
Set NeutralTypes[3] = Knight
Set NeutralTeritoriesCount = 4
Set NeutralTeritories[1] = Spawn Creep 1 <gen>
Set NeutralTeritories[2] = Spawn Creep 4 <gen>
Set NeutralTeritories[3] = Spawn Creep 2 <gen>
Set NeutralTeritories[4] = Spawn Creep 3 <gen>
For each (Integer A) from 1 to NeutralTeritoriesCount, do (Actions)
Loop - Actions
Set NeutralTypesKilled[(Integer A)] = False
Neutral Spawn Revival
Events
Unit - A unit owned by Neutral Hostile Dies
Conditions
(Number of units in (Units in NeutralTeritories[TempInteger])) Less than 1
Actions
Set NeutralTypesKilled[(Custom value of (Attacked unit))] = False
Neutral Spawn
Events
Time - Every (Random real number between 20.00 and 30.00) seconds of game time
Conditions
Actions
Set TempInteger = (((Execution count of (This trigger)) mod NeutralTeritoriesCount) + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
NeutralTypesKilled[TempInteger] Equal to False
Then - Actions
Set NeutralTypesKilled[TempInteger] = True
Unit - Create (Number of units in (Units in NeutralTeritories[TempInteger])) NeutralTypes[(Random integer number between 1 and NeutralCreepCount)] for Neutral Hostile at (Center of NeutralTeritories[TempInteger]) facing (Position of (Triggering unit))
Unit - Set the custom value of (Last created unit) to TempInteger
Else - Actions
where's the mistake?
they don't even start to spawn...
but without that function jiberish
...
Neutral Spawn Types
Events
Conditions
Actions
Set NeutralCreepCount = 3
Set NeutralTypes[1] = Peasant
Set NeutralTypes[2] = Footman
Set NeutralTypes[3] = Knight
Set NeutralTeritoriesCount = 4
Set NeutralTeritories[1] = Spawn Creep 1 <gen>
Set NeutralTeritories[2] = Spawn Creep 4 <gen>
Set NeutralTeritories[3] = Spawn Creep 2 <gen>
Set NeutralTeritories[4] = Spawn Creep 3 <gen>
For each (Integer A) from 1 to NeutralTeritoriesCount, do (Actions)
Loop - Actions
Set NeutralTypesKilled[(Integer A)] = False
Neutral Spawn Revival
Events
Unit - A unit owned by Neutral Hostile Dies
Conditions
(Number of units in (Units in NeutralTeritories[TempInteger])) Less than 1
Actions
Set NeutralTypesKilled[(Custom value of (Attacked unit))] = False
Neutral Spawn
Events
Time - Every (Random real number between 20.00 and 30.00) seconds of game time
Conditions
Actions
Set TempInteger = (((Execution count of (This trigger)) mod NeutralTeritoriesCount) + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
NeutralTypesKilled[TempInteger] Equal to False
Then - Actions
Set NeutralTypesKilled[TempInteger] = True
Unit - Create (Number of units in (Units in NeutralTeritories[TempInteger])) NeutralTypes[(Random integer number between 1 and NeutralCreepCount)] for Neutral Hostile at (Center of NeutralTeritories[TempInteger]) facing (Position of (Triggering unit))
Unit - Set the custom value of (Last created unit) to TempInteger
Else - Actions
where's the mistake?
they don't even start to spawn...