• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Stopping an effect of an ability when unit Stops Channeling an Ability

Status
Not open for further replies.
Level 3
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..

  • 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
 
Status
Not open for further replies.
Top