- Joined
- Oct 16, 2011
- Messages
- 308
Does this kind of trigger leaks?
I want to use the trigger above 'cos I hate long triggers like this below:
I'm going to need a shorter version of this trigger 'cos the points that I will use will reach up to Point[32] but that's too long.
If someone knows how to execute this properly, please show me how
`
-
Terrain
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
Actions
-
Set Point[0] = (Position of (Triggering unit))
-
For each (Integer Point_Max) from 1 to 8, do (Actions)
-
Loop - Actions
-
Set Point[Point_Max] = (Point[0] offset by 128.00 towards (45.00 x (Real(Point_Max))) degrees)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Terrain type at Point[Point_Max]) Equal to Barrens - Grassy Dirt
-
-
-
-
Then - Actions
-
Environment - Change terrain type at Point[Point_Max] to Outland - Rough Dirt using variation -1 in an area of size 1 and shape Circle
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_Point[1])
-
Custom script: call RemoveLocation(udg_Point[2])
-
Custom script: call RemoveLocation(udg_Point[3])
-
Custom script: call RemoveLocation(udg_Point[4])
-
Custom script: call RemoveLocation(udg_Point[5])
-
Custom script: call RemoveLocation(udg_Point[6])
-
Custom script: call RemoveLocation(udg_Point[7])
-
Custom script: call RemoveLocation(udg_Point[8])
-
-
-
Custom script: call RemoveLocation(udg_Point[0])
-
-
-
Terrain
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
Actions
-
Set Point[0] = (Position of (Triggering unit))
-
Set Point[1] = (Point[0] offset by 128.00 towards 0.00 degrees)
-
Set Point[2] = (Point[0] offset by 128.00 towards 90.00 degrees)
-
Set Point[3] = (Point[0] offset by 128.00 towards 180.00 degrees)
-
Set Point[4] = (Point[0] offset by 128.00 towards 270.00 degrees)
-
Set Point[5] = (Point[0] offset by 128.00 towards 45.00 degrees)
-
Set Point[6] = (Point[0] offset by 128.00 towards 135.00 degrees)
-
Set Point[7] = (Point[0] offset by 128.00 towards 225.00 degrees)
-
Set Point[8] = (Point[0] offset by 128.00 towards 315.00 degrees)
-
For each (Integer Point_Max) from 0 to 8, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Terrain type at Point[Point_Max]) Equal to Barrens - Grassy Dirt
-
-
-
-
Then - Actions
-
Environment - Change terrain type at Point[Point_Max] to Outland - Rough Dirt using variation -1 in an area of size 1 and shape Circle
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_Point[0])
-
Custom script: call RemoveLocation(udg_Point[1])
-
Custom script: call RemoveLocation(udg_Point[2])
-
Custom script: call RemoveLocation(udg_Point[3])
-
Custom script: call RemoveLocation(udg_Point[4])
-
Custom script: call RemoveLocation(udg_Point[5])
-
Custom script: call RemoveLocation(udg_Point[6])
-
Custom script: call RemoveLocation(udg_Point[7])
-
Custom script: call RemoveLocation(udg_Point[8])
-
-
If someone knows how to execute this properly, please show me how

`