• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Spell Problem

Status
Not open for further replies.
Level 26
Joined
Dec 30, 2007
Messages
1,556
Hey guys!
I've been having some problem with a spell based on the "Aerial Shackles" spell.

What I want it to do:
Hold an enemy for X amout of time, doing X amount of Damage (Basic Spell).
Units in the radius of 200 units from the targeted unit will recive 150 Damage each second.
Short Verison:
Hold Specific unit and damage surrounding units.

This is what I've done this far (yes, I suck...)
  • Arcane Prison
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Arcane Prison (Anchorite)
    • Actions
      • Set Temp_Pt_Spell = (Target point of ability being cast)
      • Set Temp_UG_Spell = (Units within 200.00 of Temp_Pt_Spell matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
      • Unit Group - Pick every unit in Temp_UG_Spell and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal
          • Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
          • Special Effect - Destroy (Last created special effect)
      • Custom script: call DestroyGroup (udg_Temp_UG_Spell)
      • Custom script: call RemoveLocation (udg_Temp_Pt_Spell)
What I want to do now, is to repeat the Loop - Action each second, but just for as long as the hero keeps channeling the spell. When he breakes the channel, the damage breakes as well.

Help would be awesome ;)
 
Status
Not open for further replies.
Top