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

Damage Dash spell help!

Status
Not open for further replies.
Level 6
Joined
Oct 22, 2006
Messages
184
donut3.5 said:
Use Unit - Move unit to position with polar offset every .05 second. I'm not exactly sure what you qant, so I'll let you play around with it.
--donut3.5--
Like in anime fight (i don't know if uve played)one of Kenshins spells is where he dashes in a line dealing damage to any unit in the line, thats basically what i want! My hero to dash in a line dealing damage to any unit in the line
 
Level 27
Joined
Feb 22, 2006
Messages
3,052
Channel base spell, point target, then use the following triggers:
Variables:
Unit(index of 12)
AntiLeakPoint
TargetPoint(index of 12)
AntiLeakUnitGroup
Unit begins casting an ability
ability = charge
set unit(player number of owner of triggering unit) = triggering unit
set targetpoint(player number of owner of triggering unit)=Target point of spell being cast

Every .05 seconds
For each integer a 1-12 do
set antileakpoint(integerA) = position of unit(integerA) offset by 20 toward facing of unit(integerA)
Move unit (integerA) to antileakpoint
Set AntileakGroup to all units within 200 of unit(integerA) and do Unit(integerA) damage Picked unit for 10 damage using damage type spells and type normal
If Distance between antileakpoint and target point(integerA) less than or equal to 50, then set unit(integerA) = no unit else do nothing
Custom Script: call DestroyGroup (AntiLeakUnitGroup)
Custom Script: call RemoveLocation (AntiLeakPoint)


Note this is coded for a map where each player gets one hero, but all players may get the same hero and use the ability at the same time.
The two editable fields are the damage and the offset.
--donut3.5--
 
Status
Not open for further replies.
Top