wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Tutorials > Tutorials for beginners
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 11-06-2005, 06:09 PM   #1
BoterhaM
User
 
Join Date: Nov 2005
Posts: 3

Submissions (1)

BoterhaM has little to show at this moment (7)

Default 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 11:23 AM.
BoterhaM is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 02-10-2006, 08:54 AM   #2
Jacek
Banned
 
Join Date: Dec 2004
Posts: 1,095

Submissions (1)

Jacek is a jewel in the rough (164)Jacek is a jewel in the rough (164)

Send a message via MSN to Jacek
Default

Could prove useful for people who never played D&D RPGs.
Jacek is offline   Reply With Quote
Old 02-10-2006, 12:02 PM   #3
niv
User
 
niv's Avatar
 
Join Date: Jan 2006
Posts: 9

niv has little to show at this moment (1)

Default

wow i really needed this
niv is offline   Reply With Quote
Old 04-05-2006, 11:35 PM   #4
Ignitedstar
Moderator
 
Ignitedstar's Avatar


RP Section Moderator
 
Join Date: Jul 2005
Posts: 1,755

Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)

Send a message via MSN to Ignitedstar Send a message via Yahoo to Ignitedstar
Default

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-05-2006 at 11:37 PM.
Ignitedstar is offline   Reply With Quote
Old 04-06-2006, 08:01 PM   #5
Mordiggian
Death Metal Artist
 
Mordiggian's Avatar
 
Join Date: May 2004
Posts: 577

Submissions (28)

Mordiggian has a spectacular aura about (120)

Send a message via MSN to Mordiggian
Default

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!

Mordiggian is offline   Reply With Quote
Old 04-18-2006, 05:22 AM   #6
kaldoreielf
User
 
kaldoreielf's Avatar
 
Join Date: Mar 2006
Posts: 179

Submissions (2)

kaldoreielf has a little shameless behaviour in the past (-5)

Send a message via MSN to kaldoreielf
Default

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
kaldoreielf is offline   Reply With Quote
Old 04-18-2006, 10:30 AM   #7
Earth-Fury
Two Blue
 
Earth-Fury's Avatar
 
Join Date: Mar 2003
Posts: 2,179

Submissions (7)

Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)

Send a message via MSN to Earth-Fury
Default

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

Earth-Fury is offline   Reply With Quote
Old 04-23-2006, 05:46 AM   #8
Ignitedstar
Moderator
 
Ignitedstar's Avatar


RP Section Moderator
 
Join Date: Jul 2005
Posts: 1,755

Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)

Send a message via MSN to Ignitedstar Send a message via Yahoo to Ignitedstar
Default

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.
Ignitedstar is offline   Reply With Quote
Old 04-23-2006, 07:03 AM   #9
kaldoreielf
User
 
kaldoreielf's Avatar
 
Join Date: Mar 2006
Posts: 179

Submissions (2)

kaldoreielf has a little shameless behaviour in the past (-5)

Send a message via MSN to kaldoreielf
Default

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
kaldoreielf is offline   Reply With Quote
Old 03-25-2007, 04:18 AM   #10
djdeth
User
 
Join Date: Mar 2007
Posts: 11

djdeth has little to show at this moment (0)

Default

But what about splash damage? This doesnt explain about the area of which a unit is hit in splash attacks.
djdeth is offline   Reply With Quote
Old 03-25-2007, 12:18 PM   #11
Callahan
Bullseye
 
Callahan's Avatar
 
Join Date: Jan 2006
Posts: 977

Submissions (72)

Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)

Default

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!
Callahan is offline   Reply With Quote
Old 08-23-2007, 08:13 AM   #13
Dokken
User
 
Dokken's Avatar
 
Join Date: Aug 2007
Posts: 5

Dokken has little to show at this moment (0)

Send a message via MSN to Dokken
Default

Thanks, I found this guide very helpful. I never understood what the damage dice was used for before I read this.
__________________
Dokken is offline   Reply With Quote
Old 12-30-2007, 06:49 AM   #14
cwj5050
User
 
Join Date: Dec 2007
Posts: 2

cwj5050 has little to show at this moment (0)

Default

thanks for the tip
cwj5050 is offline   Reply With Quote
Old 03-20-2008, 08:15 PM   #15
Biollante spawn
User
 
Join Date: Feb 2008
Posts: 1

Biollante spawn has little to show at this moment (0)

Default

how do you make a unit do 1-1 damage then??
Biollante spawn is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 08:26 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services