Pythia Dungeon Script

image from ArtBreeder

filed under mechanics on 16 Dec 2018
tagged dungeon, random, python, and pythia

I pulled some of Pythia’s dungeon building tools out and put them into a simple python script. The output is saved to a text file in the folder where you’ve got the script.

You can specify how many areas in the dungeon.


$ python dungeon.py 10

And the output looks like this:

Pythia Dungeon Script Screenshot

This is more or less a direct dump from Pythia’s dungeon panel, in the order I usually push the buttons. The exits line is custom for this script since I tend to either have an ascii map or use the exit generator built into Pythia, ignoring extra results.

I usually generate one area and then one room at a time, as needed, but doing them all at once at the command line keeps it persistent like it is in Pythia.

Area mechanic is inspired by Scarlet Heroes and Castle Gargantua. If you want to add more elements, most of the content is locked up in the “chart” variables.

Have fun!