- Joined
- Jul 10, 2009
- Messages
- 89
Is there a way to trigger (or otherwise configure) an ability so that it can only target one unit-type?
Thanks!
Thanks!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hero Target

Events


Unit - A unit Is attacked

Conditions


((Attacking unit) is A Hero) Equal to True

Actions


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



If - Conditions




(Unit-type of (Attacked unit)) Equal to Knight



Then - Actions



Else - Actions




Unit - Order (Attacking unit) to Stop
!@!

Events


Unit - A unit begins casting an Ability

Conditions


((Triggering Unit) is A Hero) Equal to True

Actions


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



If - Conditions




(Unit-type of (Target Unit of Ability being Cast)) Equal to Knight



Then - Actions



Else - Actions




Unit - Order (Triggering Unit) to Stop




-- Show error if you want that it can't be cast --
Jim7777its just almost the same
its just like that... i used begin casting so it would not cost mana and cooldown when the hero stops
!@!
Events
Unit - A unit begins casting an Ability
Conditions
((Triggering Unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target Unit of Ability being Cast)) Equal to Knight
Then - Actions
Else - Actions
Unit - Order (Triggering Unit) to Stop
-- Show error if you want that it can't be cast --
!@!

Events


Unit - A unit starts the effect of an ability
Hero Target

Events


Unit - A unit Is attacked

Conditions


((Attacking unit) is A Hero) Equal to True


(Unit-type of (Attacked unit)) Equal to Knight

Actions


Unit - Order (Attacking unit) to Stop
trig ability

Events


Unit - A unit begins casting an Ability

Conditions


((Triggering Unit) is A Hero) Equal to True


(Unit-type of (Target Unit of Ability being Cast)) Equal to Knight

Actions


Unit - Order (Triggering Unit) to Stop