Zaphiel's Damage Calculator (Python Script)

Discussions related to character builds and mechanics may occur here.

Moderators: Forum Moderators, Active DMs

Post Reply
User avatar
Zaphiel
Contributor
Contributor
Posts: 335
Joined: Wed Nov 28, 2018 2:47 pm

Zaphiel's Damage Calculator (Python Script)

Post by Zaphiel » Mon Oct 04, 2021 11:07 am

Hello all. I have made a damage calculator a year ago but didn't share it because I was lazy to explain to how to use it >.> But now I had some free time, I have written how to use it. You can find the details about how to use it in the repo's link. Though, you need to have some little Python knowledge. Have fun!

GitHub Repo Link: https://github.com/egebilecen/nwn-damage-calculator

Example Calculation Result: (I think I have done this calculation for HexBlade Monk :lol:)

Code: Select all

ROUNDS                             500000

WEAPON NAME                        GMW Naginata
WEAPON DAMAGE                      1d10
WEAPON DAMAGE BONUS                26
WEAPON THREAT RANGE                19
WEAPON CRITICAL HIT MULTIPLIER     2
WEAPON OTHER DAMAGE BONUSES        
    * DIVINE                       1d6
    * POSITIVE                     2
    * NEGATIVE                     2

CHARACTER AB                       50
CHARACTER TOTAL APR                7
CHARACTER IS MONK                  Yes
CHARACTER OVERWHELMING CRITICAL    No
CHARACTER THUNDERING RAGE          No

TARGET DEFENSIVE ESSENCE           5
TARGET CONCEALMENT                 50% (25.00% w/ blind fight)
TARGET EPIC DODGE                  No
TARGET CRITICAL IMMUNITY           No
TARGET PHYSICAL IMMUNITY           0%
TARGET PHYSICAL DAMAGE REDUCTION   0

-=[RESULTS]=-                     

TARGET AC                          20
TOTAL ATTACK                       3500000
TOTAL HIT                          2528149 (72.23% of total attacks)
TOTAL MISS                         971851 (27.77% of total attacks)
    * CONCEALED ATTACKS            838994 (86.33% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 266121 (10.53% of total hits)

TOTAL DAMAGE                       100186362
TOTAL WEAPON DAMAGE                88024548 (87.86% of total damage)
TOTAL OTHER DAMAGE                 12161814 (12.14% of total damage)
    * DIVINE                       984734
    * POSITIVE                     5588540
    * NEGATIVE                     5588540

AVARAGE DAMAGE PER ROUND           200.37

==================================================

TARGET AC                          25
TOTAL ATTACK                       3500000
TOTAL HIT                          2527992 (72.23% of total attacks)
TOTAL MISS                         972008 (27.77% of total attacks)
    * CONCEALED ATTACKS            839304 (86.35% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 266936 (10.56% of total hits)

TOTAL DAMAGE                       100208168
TOTAL WEAPON DAMAGE                88043398 (87.86% of total damage)
TOTAL OTHER DAMAGE                 12164770 (12.14% of total damage)
    * DIVINE                       985058
    * POSITIVE                     5589856
    * NEGATIVE                     5589856

AVARAGE DAMAGE PER ROUND           200.42

==================================================

TARGET AC                          30
TOTAL ATTACK                       3500000
TOTAL HIT                          2527070 (72.20% of total attacks)
TOTAL MISS                         972930 (27.80% of total attacks)
    * CONCEALED ATTACKS            839858 (86.32% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 265302 (10.50% of total hits)

TOTAL DAMAGE                       100112444
TOTAL WEAPON DAMAGE                87963027 (87.86% of total damage)
TOTAL OTHER DAMAGE                 12149417 (12.14% of total damage)
    * DIVINE                       979929
    * POSITIVE                     5584744
    * NEGATIVE                     5584744

AVARAGE DAMAGE PER ROUND           200.22

==================================================

TARGET AC                          35
TOTAL ATTACK                       3500000
TOTAL HIT                          2527486 (72.21% of total attacks)
TOTAL MISS                         972514 (27.79% of total attacks)
    * CONCEALED ATTACKS            839071 (86.28% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 266464 (10.54% of total hits)

TOTAL DAMAGE                       100167483
TOTAL WEAPON DAMAGE                88009476 (87.86% of total damage)
TOTAL OTHER DAMAGE                 12158007 (12.14% of total damage)
    * DIVINE                       982207
    * POSITIVE                     5587900
    * NEGATIVE                     5587900

AVARAGE DAMAGE PER ROUND           200.33

==================================================

TARGET AC                          40
TOTAL ATTACK                       3500000
TOTAL HIT                          2469624 (70.56% of total attacks)
TOTAL MISS                         1030376 (29.44% of total attacks)
    * CONCEALED ATTACKS            840006 (81.52% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 256506 (10.39% of total hits)

TOTAL DAMAGE                       97726067
TOTAL WEAPON DAMAGE                85868949 (87.87% of total damage)
TOTAL OTHER DAMAGE                 11857118 (12.13% of total damage)
    * DIVINE                       952598
    * POSITIVE                     5452260
    * NEGATIVE                     5452260

AVARAGE DAMAGE PER ROUND           195.45

==================================================

TARGET AC                          45
TOTAL ATTACK                       3500000
TOTAL HIT                          2241279 (64.04% of total attacks)
TOTAL MISS                         1258721 (35.96% of total attacks)
    * CONCEALED ATTACKS            840308 (66.76% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 231979 (10.35% of total hits)

TOTAL DAMAGE                       88667828
TOTAL WEAPON DAMAGE                77910339 (87.87% of total damage)
TOTAL OTHER DAMAGE                 10757489 (12.13% of total damage)
    * DIVINE                       864457
    * POSITIVE                     4946516
    * NEGATIVE                     4946516

AVARAGE DAMAGE PER ROUND           177.34

==================================================

TARGET AC                          50
TOTAL ATTACK                       3500000
TOTAL HIT                          1861386 (53.18% of total attacks)
TOTAL MISS                         1638614 (46.82% of total attacks)
    * CONCEALED ATTACKS            840879 (51.32% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 189928 (10.20% of total hits)

TOTAL DAMAGE                       73521108
TOTAL WEAPON DAMAGE                64605190 (87.87% of total damage)
TOTAL OTHER DAMAGE                 8915918 (12.13% of total damage)
    * DIVINE                       710662
    * POSITIVE                     4102628
    * NEGATIVE                     4102628

AVARAGE DAMAGE PER ROUND           147.04

==================================================

TARGET AC                          55
TOTAL ATTACK                       3500000
TOTAL HIT                          1271427 (36.33% of total attacks)
TOTAL MISS                         2228573 (63.67% of total attacks)
    * CONCEALED ATTACKS            841791 (37.77% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 126750 (9.97% of total hits)

TOTAL DAMAGE                       50116653
TOTAL WEAPON DAMAGE                44043088 (87.88% of total damage)
TOTAL OTHER DAMAGE                 6073565 (12.12% of total damage)
    * DIVINE                       480857
    * POSITIVE                     2796354
    * NEGATIVE                     2796354

AVARAGE DAMAGE PER ROUND           100.23

==================================================

TARGET AC                          60
TOTAL ATTACK                       3500000
TOTAL HIT                          740593 (21.16% of total attacks)
TOTAL MISS                         2759407 (78.84% of total attacks)
    * CONCEALED ATTACKS            840754 (30.47% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 70225 (9.48% of total hits)

TOTAL DAMAGE                       29052395
TOTAL WEAPON DAMAGE                25537063 (87.90% of total damage)
TOTAL OTHER DAMAGE                 3515332 (12.10% of total damage)
    * DIVINE                       272060
    * POSITIVE                     1621636
    * NEGATIVE                     1621636

AVARAGE DAMAGE PER ROUND           58.10

==================================================

TARGET AC                          65
TOTAL ATTACK                       3500000
TOTAL HIT                          361477 (10.33% of total attacks)
TOTAL MISS                         3138523 (89.67% of total attacks)
    * CONCEALED ATTACKS            840391 (26.78% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 28613 (7.92% of total hits)

TOTAL DAMAGE                       13969022
TOTAL WEAPON DAMAGE                12287978 (87.97% of total damage)
TOTAL OTHER DAMAGE                 1681044 (12.03% of total damage)
    * DIVINE                       120684
    * POSITIVE                     780180
    * NEGATIVE                     780180

AVARAGE DAMAGE PER ROUND           27.94

==================================================

TARGET AC                          70
TOTAL ATTACK                       3500000
TOTAL HIT                          133433 (3.81% of total attacks)
TOTAL MISS                         3366567 (96.19% of total attacks)
    * CONCEALED ATTACKS            840642 (24.97% of total misses)
    * EPIC DODGE                   0 (0.00% of total misses)
TOTAL CRITICAL HIT                 1828 (1.37% of total hits)

TOTAL DAMAGE                       4827441
TOTAL WEAPON DAMAGE                4260530 (88.26% of total damage)
TOTAL OTHER DAMAGE                 566911 (11.74% of total damage)
    * DIVINE                       25867
    * POSITIVE                     270522
    * NEGATIVE                     270522

AVARAGE DAMAGE PER ROUND           9.65

==================================================

Edited for grammar to make it worse, probably.

helitron
Posts: 140
Joined: Wed May 02, 2018 5:09 pm

Re: Zaphiel's Damage Calculator (Python Script)

Post by helitron » Mon Oct 04, 2021 3:39 pm

Ohh, nice one - thanks. I wanted to do something like that in R with a plot showing damage vs AC (like the nwn damage calculator), including the stdev on top of average damage per round. But got distracted :)

Rolled characters:
William Bones; Durk Rotgrun; Hector Bartholomew; Rali Runehammer; Daris Blake; Nathaniel Silvers; Mordarok; Guy Silvers; Shayleth Shadowblood


Post Reply