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

integer = units current damage (with modifyers)

Status
Not open for further replies.
Level 3
Joined
Aug 28, 2005
Messages
48
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
 
Level 2
Joined
Apr 21, 2006
Messages
21
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
 
Status
Not open for further replies.
Top