Command-line tools for D&D 4e
Go to file
2012-05-04 11:27:37 -04:00
lib Implemented ability to read combatant definitions from files 2012-05-04 11:27:04 -04:00
.gitignore Added .gitignore to make working with git.el easier. 2012-03-23 15:20:30 -04:00
battleman.py Cleaned up some deprecated code 2012-05-04 11:27:37 -04:00
diceroller.py diceroller.py: Refactored Dice object into its own library under lib/ 2012-03-29 22:55:39 -04:00
readme.markdown diceroller.py: Refactored Dice object into its own library under lib/ 2012-03-29 22:55:39 -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.

diceroller.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 Linux types.

For programmers

dice

A module that 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.