• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

If a unit is touched by ability

Status
Not open for further replies.
I attached 2 maps with triggered Shockwaves. The Stun version is basically the same thing as the other map but with a Dummy unit added to it that will Stun enemy units.

Alternatively, you could achieve this using a Damage Engine, a "fake" shockwave ability, a real Shockwave ability, and a unique Dummy Unit that is used exclusively for this effect.

What you do is give your Hero a "fake" Shockwave ability (no effect, just a tooltip/icon/cooldown and should behave like Shockwave), and then in response to him casting this you create the unique Dummy unit and order it to cast the real Shockwave ability. Then using the Damage Engine you create a trigger to detect when damage is dealt by said Dummy unit and stun the damaged unit in response using a 0 damage Storm Bolt.

The only quirk with the above solution is that the Damage Engine (at least Bribe's system) will detect 0 damage and fire a Damage Event for the Storm Bolt. So your 0 damage Storm Bolt that we're using to Stun the units will fire the Damage Event trigger which will crash the game because it creates an infinite loop (a unit takes damage -> deal damage to unit). So you'll either want to use a different type of Dummy unit to Stun the enemies or check if the DamgeEventAmount (damage that was dealt) was greater than 0 so the Damage Event trigger ignores Storm Bolt.
 

Attachments

Last edited:
Status
Not open for further replies.
Back
Top