Skip to main content

A tool to simulate combat in AD&D 2nd Edition

Project description

Summary

The AD&D Second edition Combat Simulator will run simple simulated battles to determine the statistical likelyhood of success or failure by the party. The simulator does not account for player creativity and uses a very simple method to determine how the battle will go.

Configuration

Add all details about the combatants into the combatants.yaml file. The example combatants.example.yaml illustrates the syntax

ac

The values in the AC dictionary are added together to detemrine the AC. For example a shield would have an AC value of 1 because it reduces AC by 1. Studded leather would have a value of 3 because it gives AC 7. If a combatant had both (3 + 1), their AC would be 6. Default is no modifier or AC 10.

attack

This list enumerates the attacks that the combatant will use. The values are the names of the attacks in the attacks section. Each combatant uses all of their attacks each round. For example a monster with an attack list of “claw”, “claw”, “bite” would make all 3 attacks in a single round.

attacks

This list contains all the possible attacks a combatant might use.

damage

This can either be a string or a dictionary. If it’s a string it applies to targets of all sizes. If it’s a dictionary the size of the target is mapped to a damage string.

tohit

The values in the To Hit dictionary are added together to determine the total modifier for the to hit role. For example if a fighter specialized in a bastard sword and had a magical bastard sword +1, the 1 from specialization and 1 from magic would be added to the d20 die roll. Default is no modifier.

rof

Rate of fire can be a number of attacks/shots per round (e.g. 2 or 3) or a ratio of attacks/shots per round (2/1 or 3/2). Default is 1/1.

qty

The number of the given type of monster to include in the battle.

hd

The hit dice of the monster. This can be a traditional Hit Die number (e.g. 3) which is the number of 1d8 dice to roll to determine the monsters hit points, or it can be a traditional Hit Die number with a modifier (e.g. 3 + 2), or it can just be a description of dice and modifiers (e.g. 1d6 + 2 or 2d8)

Usage

To simulate the war

battle [BATTLES]

The BATTLES argument indicates how many times to simulate the battle. Default is 1.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adnd2e-combat-simulator-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adnd2e_combat_simulator-1.0.0-py2-none-any.whl (8.0 kB view details)

Uploaded Python 2

File details

Details for the file adnd2e-combat-simulator-1.0.0.tar.gz.

File metadata

File hashes

Hashes for adnd2e-combat-simulator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7c5513284a0d464799945b15bcfa695ba199558fbbea7f6f680f01e5a30e9907
MD5 5c8f40701b4d5f676ab12124f3f940b6
BLAKE2b-256 13693d54d1a4db4a544d5c6d3ad99c2453246e5514f5219d0b3c2109e535c11a

See more details on using hashes here.

File details

Details for the file adnd2e_combat_simulator-1.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for adnd2e_combat_simulator-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 e2824b4ae266338c0e11da7da620e18165bb7d17897b9e46436485c1a311feb4
MD5 0c6edf74e1a7a87351f9d0af7ccee7ca
BLAKE2b-256 d3ca0c0bc38534fd859d5a1b69c0236ceacefc425f68030510044c9e035c742e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page