How does the damage work?

Post Reply
MZ0125
Posts: 504
Joined: Tue Sep 22, 2009 8:02 am

How does the damage work?

Post by MZ0125 » Thu Jan 21, 2010 2:33 am

I'm recently peeking my nose into the weapon.xnb for some experiments on melee weapons. Yet I can't figure out how the damage works? I mean, what does 1D6 + 2 means? Can anyone shine some lights on this pls? Thx a lot!

User avatar
SpardaSon21
Posts: 1869
Joined: Mon Nov 03, 2008 6:24 am

Re: How does the damage work?

Post by SpardaSon21 » Thu Jan 21, 2010 3:35 am

1d6 is the equivalent of rolling a single six-sided die. So its a random number between one and six. The "+2" at the end is a number added to the die roll. So for that formula a random number between one and six is chosen, and then two is added to it.

dayero
Posts: 67
Joined: Tue Nov 24, 2009 2:19 am

Re: How does the damage work?

Post by dayero » Thu Jan 21, 2010 4:12 am

first is the number of dice rolled, the second number indicates how many sides the dice have and the third number is a constant.
note that not only the range but also the probability distribution differs. for example
1d20 = 1-20
3d6 = 3-18

in the first case the chance to roll a 3 is 1/20, in the second case its 1/6 * 1/6 * 1/6 = 1/216.

so when you design your own weapons keep in mind that big dice lead to big fluctuations while big numbers of smaller dice mostly produce results close to the average damage.

MZ0125
Posts: 504
Joined: Tue Sep 22, 2009 8:02 am

Re: How does the damage work?

Post by MZ0125 » Fri Jan 22, 2010 8:16 am

Interesting, thx man.

Post Reply

Return to “FZ Modding”

Who is online

Users browsing this forum: No registered users and 3 guests