- Joined
- Aug 3, 2004
- Messages
- 2,909
This stops the spell from being cast and displays the error message, but does not stop the unit from moving into cast range. Why?
-
Decoy Creation Try
-

Events
-


Unit - A unit Is issued an order targeting an object
-
-

Conditions
-


(Unit-type of (Triggering unit)) Equal to Decoy
-


(Issued order) Equal to (Order(bloodlust))
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




And - All (Conditions) are true
-





Conditions
-






(Unit-type of (Target unit of issued order)) Not equal to Lancer
-






(Unit-type of (Target unit of issued order)) Not equal to Battleship
-






(Unit-type of (Target unit of issued order)) Not equal to Bulwark
-






(Unit-type of (Target unit of issued order)) Not equal to Pulverizer
-






(Unit-type of (Target unit of issued order)) Not equal to Juggernaught
-






(Unit-type of (Target unit of issued order)) Not equal to Giant Sea Turtle
-






(Unit-type of (Target unit of issued order)) Not equal to Incursus
-






(Unit-type of (Target unit of issued order)) Not equal to Ravager
-






(Unit-type of (Target unit of issued order)) Not equal to Derelict
-






(Unit-type of (Target unit of issued order)) Not equal to Transport Ship
-






(Unit-type of (Target unit of issued order)) Not equal to Transport Ship
-
-
-
-



Then - Actions
-




Set ErrorPlayer = (Owner of (Triggering unit))
-




Unit - Order (Triggering unit) to Stop
-




Set ErrorMessage = Must target your racial naval or amphibious units.
-




Custom script: call ErrorMessage(udg_ErrorMessage,udg_ErrorPlayer)
-
-



Else - Actions
-
-
-







