- Joined
- Oct 29, 2007
- Messages
- 1,184
Okay here are the two first triggers. (they work prefectly.)
-
Guard 01 Wander
-
Events
- Unit - A unit enters Guard 01 Wander Path 01 <gen>
- Unit - A unit enters Guard 01 Wander Path 02 <gen>
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Guard 01 Wander Path 01 <gen> contains Guard[1]) Equal to True
- (Triggering unit) Equal to Guard[1]
-
Then - Actions
- Wait 2.00 seconds
- Set TempPoints[1] = (Center of Guard 01 Wander Path 02 <gen>)
- Unit - Order Guard[1] to Move To TempPoints[1]
- Custom script: call RemoveLocation(udg_TempPoints[1])
-
Else - Actions
- Wait 2.00 seconds
- Set TempPoints[1] = (Center of Guard 01 Wander Path 01 <gen>)
- Unit - Order Guard[1] to Move To TempPoints[1]
- Custom script: call RemoveLocation(udg_TempPoints[1])
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Guard 02 Wander
-
Events
- Unit - A unit enters Guard 02 Wander Path 01 <gen>
- Unit - A unit enters Guard 02 Wander Path 02 <gen>
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Guard 02 Wander Path 01 <gen> contains Guard[2]) Equal to True
- (Triggering unit) Equal to Guard[2]
-
Then - Actions
- Wait 2.00 seconds
- Set TempPoints[1] = (Center of Guard 02 Wander Path 02 <gen>)
- Unit - Order Guard[2] to Move To TempPoints[1]
- Custom script: call RemoveLocation(udg_TempPoints[1])
-
Else - Actions
- Wait 2.00 seconds
- Set TempPoints[1] = (Center of Guard 02 Wander Path 01 <gen>)
- Unit - Order Guard[2] to Move To TempPoints[1]
- Custom script: call RemoveLocation(udg_TempPoints[1])
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Guard 03 Wander
-
Events
- Unit - A unit enters Guard 03 Wander Path 01 <gen>
- Unit - A unit enters Guard 03 Wander Path 02 <gen>
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Guard 03 Wander Path 01 <gen> contains Guard[3]) Equal to True
- (Triggering unit) Equal to Guard[3]
-
Then - Actions
- Wait 2.00 seconds
- Set TempPoints[1] = (Center of Guard 03 Wander Path 02 <gen>)
- Unit - Order Guard[3] to Move To TempPoints[1]
- Custom script: call RemoveLocation(udg_TempPoints[1])
-
Else - Actions
- Wait 2.00 seconds
- Set TempPoints[1] = (Center of Guard 03 Wander Path 01 <gen>)
- Unit - Order Guard[3] to Move To TempPoints[1]
- Custom script: call RemoveLocation(udg_TempPoints[1])
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events