Warcraft III resources & community, 2003–2006 · archived

Help with Unit - Damage Target

6 posts
#1

Help with Unit - Damage Target

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.
#2
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
#3

Help with Unit - Damage Target

Oh ok, thx Daelin, because I think it deals the damage + the calculations, I will try with Dummy then.
-Argante.
#4
DaelinBecause 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
#5
I seriously have to try and develop some JASS script which detects the damage of each hero. Unfortunately it might need a list of all boostable items, not to mention bonuses. But except that it shouldn't be hard. I will attempt something...

~Daelin
#6
Ah you want it take bonuses, meh I have no ideas how to do this, and I don't know any JASS so I can\t help there either, damn I really should learn