This is an amazing page,
http://anydice.com/It's a web based interpreter made for scripting dice probabilities, the output is processed by plotting the chance that each result will occur, and then graphing the results.
I used it to make a simple damage calculator for pistols per shot, factoring in damage, power mods and accuracy.
Paste this into the script field at the top, or come up with something of your own.
\-- Pistol/rapid fire weapons ToHit+Damage calculator --\
\ Calculates percentages on shots fired, coupling the damage rolls with the chance to hit at a certain range \
function: damage die D sides S bonus B { result: DdS + B }
function: pistol sog G sob B ee E pow P agil A range R
{
result: [damage die 2 sides (4+P) bonus G + B] * (10 + A + E*2 + 4 - (R / 3) > 3d6)
}
function: chaingun bullet sob B ee E pow P agil A range R
{
result: [damage die 1 sides (6+P) bonus B] * (10 + A + E*2 + 2 - (R / 3) > 3d6)
}
function: chaingun sob B ee E th T pow P agil A range R
{
X: [chaingun bullet sob B ee E pow P agil A range R]
result: X + X + X + X + X * ( T > 0 ) + X * ( T > 1 )
}
function: plasma bullet sob B ee E pow P agil A range R
{
result: [damage die 1 sides (7+P) bonus B] * (10 + A + E*2 + 2 - (R / 3) > 3d6)
}
function: plasma rifle sob B ee E th T pow P agil A range R
{
X: [plasma bullet sob B ee E pow P agil A range R]
result: X + X + X + X + X + X + X * ( T > 0 ) + X * ( T > 1 )
}
output [pistol sog 0 sob 0 ee 0 pow 0 agil 0 range 5] named "Pistol"
output [chaingun sob 0 ee 0 th 0 pow 0 agil 0 range 5] named "Chaingun"
output [plasma rifle sob 0 ee 0 th 0 pow 0 agil 0 range 5] named "Plasma Rifle"
PISTOL: [pistol sog 2 sob 0 ee 0 pow 0 agil 0 range 5]
output PISTOL + PISTOL named "Dualgunner"
output [chaingun sob 2 ee 0 th 1 pow 0 agil 0 range 5] named "Triggerhappy"
PISTOL: [pistol sog 3 sob 3 ee 1 pow 1 agil 0 range 5]
output PISTOL + PISTOL named "Damage Build Pistol"
output [plasma rifle sob 3 ee 0 th 2 pow 1 agil 1 range 5] named "Ammochain Plasma"
I'm finding it a fun toy to play with, and perhaps a valuable tool when determining my builds. I'm sure people can make scripts to work with the stats for other weapons.
The
Minor page is very useful in this regard.
I've separated out the damage roll as a separate function, simply so make it easier to do the same calculations for other pistol type weapons.
EDIT: I've done a few tweaks, added number crunching for Chaingun and Plasma (virtually identical weapons as far as how they work) ... note that these calculations are made 'per trigger pull' ... weapon speed is not taken into account here.