• 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.

Ensnare damaging over time?

Status
Not open for further replies.
Level 12
Joined
Feb 1, 2007
Messages
1,092
Well the spell Airial Shackles is like ensare kinda and would do damage. My bet would be a dummy spell that does damage over time like shadow strike, then a trigger that detects when a unit casts ensnare, which creates a dummy unit and orders him to fire our dummy shadow strike. If you need a map with that trigger, I would be happy to make one.
 
Level 8
Joined
May 13, 2007
Messages
392
  • Damaging Ensnare
  • Events
    • Unit - A unit begins casting an ability
  • Conditions -
    • Ability - Ability being cast equal to Ensnare
  • Actions
    • Unit - Cause casting unit to damage target of ability being cast, dealing 10 damage of attack type spells and damage type normal.
    • Wait - Wait 1 second
  • Unit - Cause casting unit to damage target of ability being cast, dealing 10 damage of attack type spells and damage type normal
Do this for the ensnare's time duration.
If u want to change at each level the damage do this :

  • Damaging Ensnare
  • Events
    • Unit - A unit begins casting an ability
  • Conditions -
    • Ability - Ability being cast equal to Ensnare
  • Actions
    • If/Then/Else Multiple Funcions
      • If - Level of Ensnare for casting unit equal to 1
      • Then -
        • Unit - Cause casting unit to damage target of ability being cast, dealing 10 damage of attack type spells and damage type normal.
    • Wait - Wait 1 second
  • Unit - Cause casting unit to damage target of ability being cast, dealing 10 damage of attack type spells and damage type normal
    • Else - Do nothing
And do this for each level.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Entangling Roots disables the attack. I think it also doesn't allow a missile.

And johan, you'd have to put RedBlade's trigger in a loop, something like

  • Set Target = (Target Unit of Ability Being Cast)
  • For Each Integer A from 1 to (duration), do actions
    • Loop - Actions
      • Unit - Cause (Triggering Unit) to damage Target, dealing ...
      • Wait 1.00 seconds
 
Level 24
Joined
Jun 26, 2006
Messages
3,406
Um... thank you for trying to help but if he hasn't answered in three days, either his problem is solved or he has spontaneously disappeared on us.
 
Status
Not open for further replies.
Top