Command-line tools for D&D 4e
Go to file
2012-03-29 18:31:38 -04:00
lib battleman.py: Broke program into multiple components - data classes and input functions are now in separate modules. 2012-03-29 18:28:21 -04:00
.gitignore Added .gitignore to make working with git.el easier. 2012-03-23 15:20:30 -04:00
battleman.py battleman.py: Broke program into multiple components - data classes and input functions are now in separate modules. 2012-03-29 18:28:21 -04:00
dice.py Failed to commit Dice changes in earlier commit 2012-03-23 15:11:24 -04:00
readme.markdown Updated readme with information about new lib-ified classes and functions. 2012-03-29 18:31:38 -04:00

4etools: D&D 4e command-line tools

This is a collection of tools designed to assist a GM running a tabletop roleplaying game (either in person or over the Internet). Some of the tools are specific to D&D 4e, and some of them are more broadly useful. They are designed to minimize the amount of time the GM needs to spend looking at the screen, so that she can keep her focus on the game and the players.

4etools includes tools for both GMs and programmers:

For users (GMs)

battleman.py

A battle manager - keeps track of initiative order, hit points, and conditions for everyone involved in the battle.

Battleman also aas a sense of whose turn it is, and prints a convenient message telling you who now has initiative when you enter the 'next' command.

dice.py

A robust command-line dice-rolling utility. Many others exist, of course, but this one accepts all of its arguments as command-line parameters, making it a simple and intuitive interface.

For programmers

dice.py

When treated as a library, provides a robust Dice class with a convenient from_str() classmethod.

battle

This module has data objects for storing and retrieving information about a battle, initiative groups, and combatants. It prints to stdout and prompts for input from stdin.

easyinput

Convenience functions for prompting/reading strings and ints. Has the ability to specify defaults, and more.