• 🏆 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] Spell Problem

Status
Not open for further replies.
Level 25
Joined
Dec 30, 2007
Messages
1,549
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