• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

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