• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Detecting the end of a channeling spell

Status
Not open for further replies.
Level 5
Joined
Oct 12, 2004
Messages
109
alright i guess this is my real question:

I have a channeling ability where a unit casts it on a building. And after it finished channeling (20 seconds) it takes control of the building. I have worked on this and found a soultion however i need it to be MUI if anyone can help me with that.

  • Events
    • Unit - A unit Begins channeling an ability
  • Conditions
    • (Ability being cast) Equal to Capture
  • Actions
    • Set Check = False
    • Set Caster = (Owner of (Triggering unit))
    • Set Unit = (Target unit of ability being cast)
    • Wait 19.00 game-time seconds
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Life of (Triggering unit)) Less than or equal to 0.00
      • Then - Actions
        • Skip remaining actions
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Check Equal to False
          • Then - Actions
            • Unit - Change ownership of Unit to Caster and Change color
          • Else - Actions
This is the only way i could find to work because the event:

  • Events
    • Unit - A unit Finishes casting an ability
Doesn't seem to work with channeling abilities.

And this is the second trigger:

  • Events
    • Unit - A unit Stops casting an ability
  • Conditions
    • (Ability being cast) Equal to Capture
  • Actions
    • Set Check = True
Thanks
bb
 
Status
Not open for further replies.
Top