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

[Trigger] Making a shockwave like spell as a trigger

Status
Not open for further replies.
Level 7
Joined
Dec 8, 2008
Messages
243
I'm trying to make a spell like shockwave which deals damage to all units in a straight line.
I've never made a spell like this before, so I'm asking for help.

  • Voltric Shot
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Voltric Shot (Heroes)
    • Actions
      • -------- Math --------
      • Set Spell_VoltricShotDamage = ((Level of (Triggering unit)) x 50)
      • -------- Points --------
      • Set Spell_VoltricPoint = (Target point of ability being cast)
      • Set Spell_VoltricShotCasterLocatio = (Position of (Triggering unit))
      • -------- Angles --------
      • Set Spell_VoltricShotAngle = (Angle from Spell_VoltricShotCasterLocatio to Spell_VoltricPoint)
      • -------- Group --------
      • Set Spell_VoltricShotGroup = (Units within 100.00 of Spell_VoltricShotCasterLocatio)
      • -------- Actions --------
      • Unit Group - Pick every unit in Spell_VoltricShotGroup and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (Real(Spell_VoltricShotDamage)))
      • -------- Desecrate Variables --------
      • Custom script: call DestroyGroup(udg_Spell_VoltricShotGroup)
      • Custom script: call RemoveLocation(udg_Spell_VoltricPoint)
      • Custom script: call RemoveLocation(udg_Spell_VoltricShotCasterLocatio)
Currently the spell hits all units around the caster. (Thats only there cause I can't find out how to damage all units in VoltricShotAngle
 
Status
Not open for further replies.
Top