I just read most of the triggers leak possible, and finished my first trigger optimisation, and I would like to know what should I change/what Is not correct in this :
Or if it is simply correct and without leak,
Thx for your time, RedSword (never did use temp_point before =O)
JASS:
TopLeftCreeps
Events
Time - Every 20.00 seconds of game time
Conditions
CreepsSpawn Equal to True
(Number of living Hideout units owned by Player 5 (Yellow)) Equal to 1
Actions
Set Temp_Point = (Center of TopLeftLeft <gen>)
Set Temp_Point2 = (Center of TopLeftTop <gen>)
Set Temp_Point3 = (Center of (Playable map area))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current research level of Research Militia Training for Player 5 (Yellow)) Equal to 0
Then - Actions
Unit - Create (Current research level of Research Additionnal Militia/Footman for Player 1 (Red)) Militia for Player 5 (Yellow) at Temp_Point facing Temp_Point3
Unit - Create (Current research level of Research Additionnal Militia/Footman for Player 1 (Red)) Militia for Player 5 (Yellow) at Temp_Point2 facing Temp_Point3
Else - Actions
Unit - Create (Current research level of Research Additionnal Militia/Footman for Player 1 (Red)) Footman for Player 5 (Yellow) at Temp_Point facing Temp_Point3
Unit - Create (Current research level of Research Additionnal Militia/Footman for Player 1 (Red)) Footman for Player 5 (Yellow) at Temp_Point2 facing Temp_Point3
Custom script: call RemoveLocation(udg_Temp_Point)
Custom script: call RemoveLocation(udg_Temp_Point2)
Custom script: call RemoveLocation(udg_Temp_Point3)
Or if it is simply correct and without leak,
Thx for your time, RedSword (never did use temp_point before =O)