• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Channeled Fan of Knives?

Status
Not open for further replies.
Level 4
Joined
Aug 17, 2008
Messages
81
I think you'd want to do something like this. I may be incorrect on specific events (I'm a bit rusty) but this is generally the way I would go about doing it.

  • start
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Fan of Knives Channel
    • Actions
      • Set Fanchannel = 0
      • Trigger - Turn on channel <gen>
  • channel (initially off)
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Fanchannel = (Fanchannel + 1)
  • end
    • Events
      • Unit - A unit Starts the effect of an ability
      • Unit - A unit Stops casting an ability
    • Conditions
      • (Ability being cast) Equal to Fan of Knives Channel
    • Actions
      • Trigger - Turn off channel <gen>
      • Animation - Play (Casting unit)'s spell animation
      • Set loc = (Position of (Casting unit))
      • Unit - Create 1 Cast Dummy for (Owner of (Casting unit)) at loc facing Default building facing degrees
      • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
      • Unit - Add Fan of Knives to (Last created unit)
      • Unit - Set level of Fan of Knives for (Last created unit) to Fanchannel
      • Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
      • Custom script: call RemoveLocation(udg_loc)
You base the heroes fan of knives off of a channel ability with the duration being whatever you want the max damage to be.
And you make a dummy unit cast the actual spell, which is a unit ability which has different levels of damage for each second you channel it.
 
Status
Not open for further replies.
Top