Warcraft III resources & community, 2003–2006 · archived

integer = units current damage (with modifyers)

4 posts
#1

integer = units current damage (with modifyers)

Ive searched and searched but i cant seem to find it... is there an integer or real in the trigger system related to a units current damage with modifyers? im trying to make a spell that when its cast, it does damage equal to the casters base+modifyer damage x a variable... but i cant find that anywhere
#2
if it would excist it was under 'real' but it doesnt excist. the only thing i know that detects damage is 'event response - damage taken' but not the damage units do
#3
This can take a bit of coding to figure out but basically say its an agility hero, they have X-Y amount of base damage. They get Z amount of damage per agility. Since the base values are constant you can set those initially.

The formula for damage would be (This is english math not world editor math):
(Number between X and Y) This gets your base damage set
+
((Base agility + Bonus mods) * Z) This gets ALL your agility then multiples by how much dmg / agility you should get
+
Any items found having damage on them


I hope that made sense
#4
actaully that helped alot thanks, sorry it took so long to repost i went on a lil vacation :)