Created: 2012-03-24 05:57
Updated: 2018-03-11 08:11


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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more