- Joined
- Oct 16, 2011
- Messages
- 296
Hey guys. Can someone make a shorter version of this trigger? I'm losing my mind.
Thankyou
-
Demon Build
-
Events
- Unit - A unit Finishes construction
- Conditions
-
Actions
- Set Point[0] = (Position of (Triggering unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Chaos Hall
- (Unit-type of (Triggering unit)) Equal to Barracks
- (Unit-type of (Triggering unit)) Equal to Obsidian Mill
- (Unit-type of (Triggering unit)) Equal to Inferno Tower
- (Unit-type of (Triggering unit)) Equal to Pig Farm
- (Unit-type of (Triggering unit)) Equal to Altar of Dimensions
- (Unit-type of (Triggering unit)) Equal to Temple of Tyranny
- (Unit-type of (Triggering unit)) Equal to Beast Den
- (Unit-type of (Triggering unit)) Equal to Demon Gate
- (Unit-type of (Triggering unit)) Equal to Shrine of Artifacts
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
-
For each (Integer Point_Max) from 1 to 12, do (Actions)
-
Loop - Actions
- Set Point[1] = (Point[0] offset by 128.00 towards (30.00 x (Real(Point_Max))) degrees)
- Set Point[2] = (Point[0] offset by 256.00 towards (30.00 x (Real(Point_Max))) degrees)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[1]) Equal to Barrens - Grassy Dirt
-
Then - Actions
- Environment - Change terrain type at Point[1] to Outland - Light Dirt using variation -1 in an area of size 1 and shape Circle
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[1]) Equal to Barrens - Dark Desert
-
Then - Actions
- Environment - Change terrain type at Point[1] to Outland - Rough Dirt using variation -1 in an area of size 1 and shape Circle
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[2]) Equal to Barrens - Grassy Dirt
-
Then - Actions
- Environment - Change terrain type at Point[2] to Outland - Light Dirt using variation -1 in an area of size 1 and shape Circle
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[2]) Equal to Barrens - Dark Desert
-
Then - Actions
- Environment - Change terrain type at Point[2] to Outland - Rough Dirt using variation -1 in an area of size 1 and shape Circle
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Custom script: call RemoveLocation(udg_Point[1])
- Custom script: call RemoveLocation(udg_Point[2])
-
Loop - Actions
-
For each (Integer Point_Max) from 1 to 12, do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Chaos Hall
- (Unit-type of (Triggering unit)) Equal to Barracks
- (Unit-type of (Triggering unit)) Equal to Obsidian Mill
- (Unit-type of (Triggering unit)) Equal to Altar of Dimensions
- (Unit-type of (Triggering unit)) Equal to Temple of Tyranny
- (Unit-type of (Triggering unit)) Equal to Beast Den
- (Unit-type of (Triggering unit)) Equal to Demon Gate
- (Unit-type of (Triggering unit)) Equal to Shrine of Artifacts
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
-
For each (Integer Point_Max) from 1 to 24, do (Actions)
-
Loop - Actions
- Set Point[1] = (Point[0] offset by 384.00 towards (15.00 x (Real(Point_Max))) degrees)
- Set Point[2] = (Point[0] offset by 512.00 towards (15.00 x (Real(Point_Max))) degrees)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[1]) Equal to Barrens - Grassy Dirt
-
Then - Actions
- Environment - Change terrain type at Point[1] to Outland - Light Dirt using variation -1 in an area of size 1 and shape Circle
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[1]) Equal to Barrens - Dark Desert
-
Then - Actions
- Environment - Change terrain type at Point[1] to Outland - Rough Dirt using variation -1 in an area of size 1 and shape Circle
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[2]) Equal to Barrens - Grassy Dirt
-
Then - Actions
- Environment - Change terrain type at Point[2] to Outland - Light Dirt using variation -1 in an area of size 1 and shape Circle
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[2]) Equal to Barrens - Dark Desert
-
Then - Actions
- Environment - Change terrain type at Point[2] to Outland - Rough Dirt using variation -1 in an area of size 1 and shape Circle
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Custom script: call RemoveLocation(udg_Point[1])
- Custom script: call RemoveLocation(udg_Point[2])
-
Loop - Actions
-
For each (Integer Point_Max) from 1 to 24, do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Chaos Hall
-
Then - Actions
-
For each (Integer Point_Max) from 1 to 36, do (Actions)
-
Loop - Actions
- Set Point[1] = (Point[0] offset by 640.00 towards (10.00 x (Real(Point_Max))) degrees)
- Set Point[2] = (Point[0] offset by 768.00 towards (10.00 x (Real(Point_Max))) degrees)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[1]) Equal to Barrens - Grassy Dirt
-
Then - Actions
- Environment - Change terrain type at Point[1] to Outland - Light Dirt using variation -1 in an area of size 1 and shape Circle
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[1]) Equal to Barrens - Dark Desert
-
Then - Actions
- Environment - Change terrain type at Point[1] to Outland - Rough Dirt using variation -1 in an area of size 1 and shape Circle
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[2]) Equal to Barrens - Grassy Dirt
-
Then - Actions
- Environment - Change terrain type at Point[2] to Outland - Light Dirt using variation -1 in an area of size 1 and shape Circle
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at Point[2]) Equal to Barrens - Dark Desert
-
Then - Actions
- Environment - Change terrain type at Point[2] to Outland - Rough Dirt using variation -1 in an area of size 1 and shape Circle
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Custom script: call RemoveLocation(udg_Point[1])
- Custom script: call RemoveLocation(udg_Point[2])
-
Loop - Actions
-
For each (Integer Point_Max) from 1 to 36, do (Actions)
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_Point[0])
-
Events