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

Help with Unit - Damage Target

Status
Not open for further replies.
Level 2
Joined
Apr 24, 2005
Messages
11
I need some help with a spell, with the damage stuff specific, I have:
Unit - Order (Trigg Unit) to damage (Target of spell) for (agility of hero x 3.00) using attack type Hero and damage type Normal.
The unit attacks the target, but it deals normal damage, not the bonus. Why is that? From now thanks you.
-Argante.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Because this function does a fixed amount of damage... You just used a formula to determine the current damage of the hero (aproximately) by ordering him to damage the target using that formula. From now I don't know any way to detect the exact damage of an unit. I already tried it several times...

~Daelin
 
Level 2
Joined
Apr 24, 2005
Messages
11
Oh ok, thx Daelin, because I think it deals the damage + the calculations, I will try with Dummy then.
-Argante.
 
Level 7
Joined
May 16, 2004
Messages
355
Daelin said:
Because this function does a fixed amount of damage... You just used a formula to determine the current damage of the hero (aproximately) by ordering him to damage the target using that formula. From now I don't know any way to detect the exact damage of an unit. I already tried it several times...

~Daelin

Well if you want to detect the exact damage of a hero it is something along the lines of

Number between- (base damage+primary atti)+#of dice and (base damage+primary atti)+# of dice*#sides per die

I cant remeber but I think that should be the damage for a hero type unit
 
Status
Not open for further replies.
Top