- Joined
- Aug 3, 2004
- Messages
- 2,906
I've tried several methods and this will display the error message but not stop the structure from casting. It is a unit based on the Tree of Life. Animation - Cast point is greater than 0.00.
-
Naga TH Distance C
-
Events
-
Unit - A unit Is issued an order targeting an object
-
-
Conditions
-
(Issued order) Equal to (Order(entangle))
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Sunken Temple
-
(Unit-type of (Triggering unit)) Equal to Tidal Temple
-
(Unit-type of (Triggering unit)) Equal to Maelstrom Temple
-
-
-
-
Actions
-
Set Naga_Flood_Point_B = (Position of (Triggering unit))
-
Set Naga_Flood_Point_C = (Position of (Target unit of issued order))
-
Set ErrorPlayer = (Owner of (Triggering unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between Naga_Flood_Point_B and Naga_Flood_Point_C) Greater than 1500.00
-
-
Then - Actions
-
Unit - Order (Triggering unit) to Stop
-
Set ErrorMessage = BLAH BLAH BLAH
-
Custom script: call ErrorMessage(udg_ErrorMessage,udg_ErrorPlayer)
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_Naga_Flood_Point_B)
-
Custom script: call RemoveLocation(udg_Naga_Flood_Point_C)
-
-