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

Fire Bolt deals AOE-damage

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
I wonder how I can do to make a spell like Fire bolt, Death Coil or Storm Hammer deal damage to units near the targeted unit?

I want to make a slow-moveing missile that launches against an enemy unit.
When the unit is hit by the missile, units nearby also gets damage. (So if the enemy is clever, he moves the target away from the rest of his units)

Any ideas how to do this via the trigger editor or via the object editor?
 
Level 9
Joined
Dec 21, 2006
Messages
490
here you go

depends, is it possible to calculate the estimated time to impact (s=v/t) ? or is the projetile so slow that you can outrun it?
if not you can make 2 triggers

-----------------
unit start the effect of an ability
-
ability being cast = your skill
-
set temppoint[1]= position of casting unit
set temppoint[2]= position of target unit of ability being cast
set target= target unit of ability being cast
start timer projetile speed/ distance between tempppoint[1] and temppoint[2]


---------------------------
timer expires
-
condition - none
-
custom script call remove location(udg_temppoint[2])
set temppoint[2]= position of "target"
create dummyunit at temppoint[2]
order last created unit to human slam
add 1 sec exiprqation timer to last reated unit
custom script call removeloaction(udg_temppoint[1])
custom script call remove location(udg_temppoint[2])

---------------------
wait functions are generlly very messed up so it's reccomment to use a timer.
temppoint cause of leaks
if several players are able to cast this you need more variables
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
Or you do the classic damage & buff check. Create the missile from a buffing skill, with damage, and set duration to 0. Then use damage detection and check for the buff. If it does have the buff do the dummy stuff (damage).

There is also the option of hashtable, projectile movement and distance check, but it is harder.
 
Level 10
Joined
Sep 6, 2008
Messages
423
I've made the projectile movement and distance check this evening just for the fun of it :p it creates a fireball that is homing in to the target and if it collides with anything it explodes :D I can attach it to a pastebin and link it to you through a pm if you want to :D no documentation but the variables explains what they are used for anyway. If you still need the documentation I might be able to put some in (tomorrow or something)
 
Status
Not open for further replies.
Top