- Joined
- Feb 28, 2013
- Messages
- 1,898
Hello, i just made a periodic event earlier, but when i tested it the game just lags when the game tries to spawn the mobs/creeps on the specified region. Can someone help me optimize the triggers or have i done it wrong?
-
Mob System Initialization
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set Mob_SpawnCount = 10
-


Set Mob_SpawnTime = (Random real number between 1.00 and 10.00)
-


Countdown Timer - Start Mob_SpawnTimer as a Repeating timer that will expire in Mob_SpawnTime seconds
-


Countdown Timer - Pause Mob_SpawnTimer
-
-
-
Morning Creep Detection
-

Events
-


Game - The in-game time of day becomes Equal to 6.00
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in Mob_Group01 and do (Unit - Add a (Random real number between 0.10 and 5.00) second Generic expiration timer to (Picked unit))
-


Countdown Timer - Start Mob_SpawnTimer as a Repeating timer that will expire in Mob_SpawnTime seconds
-


Countdown Timer - Pause Mob_SpawnTimer
-
-
-
Night Creep Detection
-

Events
-


Game - The in-game time of day becomes Equal to 18.00
-
-

Conditions
-

Actions
-


Countdown Timer - Start Mob_SpawnTimer as a Repeating timer that will expire in Mob_SpawnTime seconds
-


Countdown Timer - Resume Mob_SpawnTimer
-
-
-
Mob Spawn Region 01
-

Events
-


Time - Mob_SpawnTimer expires
-
-

Conditions
-


(Number of units in Mob_Group01) Less than Mob_SpawnCount
-
-

Actions
-


Set Mob_SpawnRegion01 = (Random point in Region 002 <gen>)
-


Unit - Create 1 Grunt for Neutral Hostile at Mob_SpawnRegion01 facing (Random angle) degrees
-


Custom script: call RemoveLocation (udg_Mob_SpawnRegion01)
-


Unit Group - Add (Last created unit) to Mob_Group01
-
-
-
Mob Remove Groups
-

Events
-


Unit - A unit Dies
-
-

Conditions
-

Actions
-


Unit Group - Remove (Triggering unit) from Mob_Group01
-
-
Last edited:





