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

[JASS] Setting the DMG of pit lord's ulti skill (with the flying things)

Status
Not open for further replies.
Level 2
Joined
Dec 26, 2007
Messages
9
Hi.
I already asked it in Spells & Systems, but there i had no really help.
I try to set the DMG of the pit lords' ultimate skill (with these flying locusts attack enemy units, drain hp of them and give them to the casting Hero.) including a stat (ex. Int of the Hero) as dmg.

Gui and Mui aren't helping, Jass needs to help now.
Is there a way ?
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Well, if you don't mind losing the life drain, you could detect an attack/damage by the locusts and deal more damage appropriately. If you do wish to count the life drain, enumerate all the locusts after the spell is cast and add damage to them via tomes or Claws of Attack (the ability).

(Did that make any sense?)
 
Level 2
Joined
Dec 26, 2007
Messages
9
I wanted from beginn with no Life Drain, so it's no problem. But that is what i would like to know, how to set the Damage of the locusts o.o ? What Jass cmd/Trigger is it ?
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
hmm after you casted spell

wait 0.5 sec
loop
Group every unit of casting player
if they are locust and not in lolgroup
add AInv
add damagetomes
remove AInv
addto lolgroup
wait 1
exit after 5 times

But that wont be MUI :/
 
Status
Not open for further replies.
Top