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

Need help with spell(unit dmg+spell dmg)

Status
Not open for further replies.
Level 2
Joined
Jun 3, 2010
Messages
10
As title says i need help with a spell that adds the units dmg/str to the spells dmg.
ex: units dmg/str is 40, spells dmg is 40= spell does 80 dmg total.
 
Last edited:
Level 2
Joined
Jun 3, 2010
Messages
10
Tnx for help, but cant find (strength of (triggering unit) include bonuses) by itself, only like "value of value from (last created hastable). +rep if u explain that ;)
 
Level 9
Joined
Jun 25, 2009
Messages
427
Tnx for help, but cant find (strength of (triggering unit) include bonuses) by itself, only like "value of value from (last created hastable). +rep if u explain that ;)

So there i looked at it, so it is like this. Go to damage, do arithmetic, 40 + now do this, Convert Integer to Real, then press on the brackets, select Hero Attribute, then select the attribute (Strength, Agility or Intelligence) of (Triggering Unit) and if you want to include bonuses then change to Include bonuses and there you have it.

And it should look a bit like this (cause in the previous i just wrote from memories, now it's from the trigger editor)
  • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (40.00 + (Real((Strength of (Triggering unit) (Include bonuses))))) damage of attack type Spells and damage type Magic
And the case is closed! (Hope so) :)
 
Status
Not open for further replies.
Top