Python Codes for DnD 5e
Project description
DnD4py - A collection of codes for D&D 5th Edition
Installation
DnD4py can be installed through pip via
pip install DnD4py
It can also be installeded by running
make install
from inside the respository.
Usage
DnD4py contains a number of miscelanious codes for use with D&D 5th edition. They include:
Roll4Me
Simulate a complex roll of many dice and modifiers Gives result, individual rolls, the mean of the distribution and the percentile of that roll relative to the distribution.
Example:
$ roll 3d8 + 1d6 + 10
returns a roll similar to:
*************
Total: 25
*************
= 12 + 3 + 10
[7 2 3] + [3] + 10
Mean: 27.0
Percentile: 28.9%
Lookup5e
Lookup D&D terms on Roll20.
Currently supported: spells, items, and monsters
Example:
$ lookup5e potion of healing
returns
Potion Of Healing
Item Type: Adventuring Gear
Subtype: Potion
Weight: 0.5
Description
===========================
You regain 2d4 + 2 hit points when you drink this potion. The potion's red
liquid glimmers when agitated.
You can shorten the lookup time if you know what category your search falls under:
$ lookup5e --monster goblin
is also identical to
$ monster5e goblin
with both returning:
Goblin
HP: 7 (2d6)
AC: 15 (Leather Armor, Shield)
Speed: 30 ft.
Challenge Rating: 1/4
STR DEX CON INT WIS CHA
8 (-1) 14 (+2) 10 (+0) 10 (+0) 8 (-1) 8 (-1)
Type: humanoid (goblinoid)
Size: Small
Alignment: Neutral Evil
Senses: Darkvision 60 Ft.
Skills: Stealth +6
Languages: Common, Goblin
Description
===========================
*Traits*
Nimble Escape: The goblin can take the Disengage or Hide action as a
bonus action on each of its turns.
*Actions*
Scimitar: Melee Weapon Attack: +4
to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) slashing damage.
Shortbow:
Ranged Weapon Attack: +4 to hit, range 80/320 ft., one target. Hit: 5 (1d6 + 2)
piercing damage.
You can also try:
$ spell5e fireball
and
$ item5e deck of many things
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file DnD4py-1.0.5.tar.gz.
File metadata
- Download URL: DnD4py-1.0.5.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
156cd78f1d8ab78989c62a53029de57c824443fb0735ffa3563b8ccc3787b4c4
|
|
| MD5 |
89c931f1b656382b9ee86be5b8ab26c3
|
|
| BLAKE2b-256 |
590840236ac75fddb812401fb1c8f1c372987ad9017567118a80d77aacccaee2
|
File details
Details for the file DnD4py-1.0.5-py3-none-any.whl.
File metadata
- Download URL: DnD4py-1.0.5-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43da3f2017b5ca3012aaba3de0d8064ff6a77fb0d8e1ef394744caab91996dd4
|
|
| MD5 |
b512a44834ccfb947bf314ddca6d0678
|
|
| BLAKE2b-256 |
529bb6d0b603132e8c875848d0d61559139ac791a38eb750e764e10497fc6ae7
|