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

Making a unit attack all adjustant units with chain lightning

Status
Not open for further replies.
Level 9
Joined
Feb 14, 2009
Messages
316
Heya, I've got a very complicated task. I need to make a unit attacking all adjustant enemies around it, firing a chain lightning at each one and every chain lightning must bounce 4 times (i.e. hit the 1st target and then another 4) with 10% damage reduction per hit.
Basically, a barrage that fires chain lightnings.
Any ideas how to do it?
*I prefer JASS, though GUI can be also fine if I try to JASS-ify it.

If your suggestion works, you shall earn a well-deserved reputation from me.

STOP!!!
Don't offer me things like "give an ability chain lightning and make it autocasting when an enemy approaches, blablabla" or "create dummy units that cast chain lightning". This thing is NOT what I need and is NOT effective because it doesn't offer variable damage + the dummy units won't know which unit to zap with the lightning. Doing so is a waste of both mine and your time.
 
Level 9
Joined
Feb 14, 2009
Messages
316
chainl.png



Instead of normal attacks, the special unit (O) fires chain lightnings
The 1st attack hits all the targets, bouncing at the nearest unit.
The 2nd attack hits the 2nd target and continues by the nearest and so on. Notice that the furthest target is unaffected, since it's too far.
The 3rd attack hits only 3 units, same reason.
The 4th attack hits 4 units.
The 5th attack hits all the 5 units.

All the mentioned attacks happen simulatiously (at the same time).
I repeat, this is not a spell, but a normal attack.
 
Status
Not open for further replies.
Top