Command-line tools for D&D 4e
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anna Wiggins 79a7d0e311 Fix do_data_input_int 7 years ago
lib Fix do_data_input_int 7 years ago
.gitignore Added .gitignore to make working with git.el easier. 8 years ago Added code to represent minions, and to kill multiple minions with one command. 8 years ago Refactored Dice object into its own library under lib/ 8 years ago
readme.markdown Refactored Dice object into its own library under lib/ 8 years ago


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)

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.

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


A module that provides a robust Dice class with a convenient from_str() classmethod.


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.


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