Wc3C.net Unit Damage Calculation
 Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar

 11-06-2005, 07:09 PM #1 BoterhaM User   Join Date: Nov 2005 Posts: 3 Submissions (1) Unit Damage Calculation Ever wondered how the damage of the units are calculated? It might look hard for beginners, but in fact it's a very easy formula: Let's say we take a Rifleman. He deals, without upgrades, 18-24 damage, let's call it A-B, A=18 and B=24. To calculate A, you have to do the following: A= Damage base + damage number of dice. If you look in the Warcraft 3 editor you'll see the following: Combat - Attack 1 - Damage base (for ease I'll call it DB): 16 Combat - Attack 1 - Damage number of dice (DnoD): 2 Combat - Attack 1 - Damage sides per die (DspD): 4 This is how "A" is calculated: A= Db+DnoD = 16 + 2 = 18 damage To calculate "B", you have to do this: B= Db+DnoD x Dspd; DnoD x DspD means 2 x 4 = 8, and remember the Db is NOT 18 but 16, so "B" will become: 16 + 8 = 24. There you have it, the way how to calculate damage, oh and if you want to have units deal damage like 40-40 or 50-50, whatever, enter this: Db= 39 Dnof= 1 Dspd= 1, this will mean "A"= 39+1, and B= 39+1x1 = 40-40 - BoterhaM Last edited by BoterhaM : 04-28-2008 at 12:23 PM.
 02-10-2006, 09:54 AM #2 Jacek Banned   Join Date: Dec 2004 Posts: 1,095 Submissions (1) Could prove useful for people who never played D&D RPGs.
 02-10-2006, 01:02 PM #3 niv User     Join Date: Jan 2006 Posts: 9 wow i really needed this
 04-06-2006, 12:35 AM #4 Ignitedstar Moderator   RP Section Moderator   Join Date: Jul 2005 Posts: 1,755 It would be easier to use single-letter variables then series, because my opinion, it looks strange. But, it's a simple tutorial. I used to get confused on how the damage works all the time. AND I still do. T.T __________________ Current Activity: It's a secret, now. Evaluation: I actually logged in?!?! "If I speak in the tongues of men and of angels, but have not love, I am only a resounding gong or a clanging cymbal. If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing." — 1 Corinthians 13:1-2 Current Works: None. Last edited by Ignitedstar : 04-06-2006 at 12:37 AM.
 04-06-2006, 09:01 PM #5 Mordiggian Death Metal Artist     Join Date: May 2004 Posts: 577 Submissions (28) I never though it would be issue for someone. Maybe because pnp rpgs have always been familiar to me and thus this dice thingie feels familiar :) But it's always good that things are written down. Only thing is that (what was already said) use single letter variables here. __________________ OBEY Click here for some serious groovin' metal!
 04-18-2006, 06:22 AM #6 kaldoreielf User     Join Date: Mar 2006 Posts: 179 Submissions (2) Excellent Tut!! I really needed this, thanks alot (+rep) the only problem is the DnsP and all that; it gets confusing... __________________ My Warcraft Log - Please leave some comments! Funny Warcraft Pictures Gallery Latest Picture: Up-close Blood Mage
04-18-2006, 11:30 AM   #7
Earth-Fury
Two Blue

Join Date: Mar 2003
Posts: 2,179

Submissions (7)

Quote:
 Originally Posted by kaldoreielf Excellent Tut!! I really needed this, thanks alot (+rep) the only problem is the DnsP and all that; it gets confusing...

Think of it this way...

You have a base damage of 10.
You roll 1 die that has 6 sides. (a single dice is a die)

The damage will be 11-16, because 1 is the lowest a dice goas, 10 becomes 11. 6 is the max the dice can go, so 10 + 6 = 16.
__________________
 Useful Links: My Resources: Good Resources: Search Tutorials Ability Guide UnitMaxState BonusMod AutoIndex ARGB TimerUtils

 04-23-2006, 06:46 AM #8 Ignitedstar Moderator   RP Section Moderator   Join Date: Jul 2005 Posts: 1,755 Earth Fury, lemme try: Okay... Damage Base = 33 Damage Number of Dice = 2 Damage Sides per Dice = 6 This is what I'm gonna call a unit's attack damage: X - Y damage (Ex: 14 - 17 damage) X would be: Damage Base + Damage Number of Dice = X, or 33 + 2 = X 35 = X Then Y would be: Damage Base + (Damage Number of Dice x Damage Sides per Dice) = Y, or 33 + (2 x 6) = Y 45 = Y So then, my unit's attack damage would be 35-45? __________________ Current Activity: It's a secret, now. Evaluation: I actually logged in?!?! "If I speak in the tongues of men and of angels, but have not love, I am only a resounding gong or a clanging cymbal. If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing." — 1 Corinthians 13:1-2 Current Works: None.
 04-23-2006, 08:03 AM #9 kaldoreielf User     Join Date: Mar 2006 Posts: 179 Submissions (2) No, I meant it gets confusing, the words not the formula; I mean, why didn't you just use the words instead 0_o oh well its only confusing imo __________________ My Warcraft Log - Please leave some comments! Funny Warcraft Pictures Gallery Latest Picture: Up-close Blood Mage
 03-25-2007, 05:18 AM #10 djdeth User   Join Date: Mar 2007 Posts: 11 But what about splash damage? This doesnt explain about the area of which a unit is hit in splash attacks.
 03-25-2007, 01:18 PM #11 Callahan Bullseye     Join Date: Jan 2006 Posts: 977 Submissions (72) splash damage is self explanatory. __________________ Current project: -Singleplayer RPG:World of Genesia -Heroes of Genesia _________ I support every RPG map maker. _______ OMG!My signature doesn't countains subliminal messages anymore!
 08-23-2007, 09:13 AM #13 Dokken User     Join Date: Aug 2007 Posts: 5 Thanks, I found this guide very helpful. I never understood what the damage dice was used for before I read this. __________________
 12-30-2007, 07:49 AM #14 cwj5050 User   Join Date: Dec 2007 Posts: 2 thanks for the tip
 03-20-2008, 09:15 PM #15 Biollante spawn User   Join Date: Feb 2008 Posts: 1 how do you make a unit do 1-1 damage then??