Statistical tools for The Ninth Age (T9A).
Python code for calculating the roll probability analytically (e.g. loops through all possible outcomes) and determines the probability based on that.
Example output from running TheMathAge_ana.py.
Example output from running TheMathAge_ana.py with verbose (-v).
Doing the same as TheMathAge_ana.py but using statisical average over simulations.
Example output from running TheMathAge_stat.py.
Gives probabilites for the number of wounds given an attacker and a target. Basically doing the same thing as http://tools.druchii.net/9th-Combat-Calculator.php but can take D3/D3+1/D6/2D6 as inputs for number of attacks and multiple wounds. Can also calculate probabilities given "Multiple Wounds on Lethal Strike" and "Extra Attacks on Unsaved Wound". Inputs are either target/attacker name and kit, character stats, hit/wound/AS/WS rolls or a combination of these. -v is verbose.
python TheMathAge_combat.py -tname eos-stank -aname koe-duke -kit might dragonlance
python TheMathAge_combat.py -tname eos-stank -tohit 1 -armourroll 7 -aa 2D6
python TheMathAge_combat.py -tws 3 -tt 6 -tas 1 -twa 7 -aws 5 -as 4 -aa 5 -als 1 -amw D3+1
python TheMathAge_combat.py -tohit 2 -wowound 3 rro -armourroll 4 -wardroll 6 -aa 10
2D6 attacks combined with D3/D6 multiple wounds. It will crash and burn. Unless you're using a supercomputer.
- Clean up code to avoid the usage of global variables
- Get data/stats from an online repository
- Add multi-profile attacks, so you can add multiple profiles (e.g. horses, grail knights, duke and breath weapon)