- Joined
- Feb 24, 2007
- Messages
- 1,098
I have a Knight that has an ability based off the Healing effect that the Potion of healing uses and I need a way to issue the unit to use the ability.
The ability code is : A00n:Alh1 (Healing (Lesser)) if that helps you to create a custom script action.
-
Autocast LifeRestore Knight
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Unit-type of (Attacked unit)) Equal to Knight
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
AutocastEnabled[(Player number of (Owner of (Attacked unit)))] Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage life of (Attacked unit)) Less than 25.00
-
-
Then - Actions
-
Unit - Order (Attacked unit) to "use heal abilitiy"
-
-
Else - Actions
-
Do nothing
-
-
-
-
Else - Actions
-
Do nothing
-
-
-
-