- Joined
- Oct 18, 2008
- Messages
- 19
Okay so i've made a spell that creates a fire orb that moves towards a target point as long as the caster is channeling the ability, but how do you stop the effect of the ability which is triggered when the caster stops channeling the ability?
i tried making a code like tihs..
i tried making a code like tihs..
-
Flare Stop
-
Events
-
Unit - A unit Stops casting an ability
-
Unit - A unit Finishes casting an ability
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Footman)) and do (Actions)
-
Loop - Actions
-
Set Caster = (Load 2 of (Key (Picked unit)) in hashtable)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Footman))) Greater than 0
-
(Triggering unit) Equal to Caster
-
-
Then - Actions
-
Unit - Kill (Picked unit)
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-