Kanjin-Text-RPG

A text adventure RPG based on the Dungeons & Dragons 5e SRD.

Running

python main.py

Pure Python stdlib — no dependencies required.

Playing

The game uses a directed graph of scenes with directional exits (north, south, east, west). Type help at any prompt for a full command list. Basic commands:

  • go [direction] — move between scenes
  • look around — see what's in the area
  • take [item] / loot [container] — pick up items
  • examine [item] — inspect an item
  • inventory / equipment / stats — review your character
  • cast [spell] / rest — spellcasting and recovery

Character creation

Choose "Create a new character" for full creation with stat allocation, or "Pre-Gen Character" to pick one of three ready-to-play characters (Elven Wizard, Human Barbarian, Dwarven Cleric).

During playtesting, you can skip character creation by replacing startGame() in main.py with a pre-generated character and assigning stats directly (see main.py:274-290 and function_list.py:14-94).

Description
A text-based Dungeons and Dragons adventure
Readme 332 KiB
Languages
Python 97.1%
HTML 1.3%
Dockerfile 0.5%
JavaScript 0.4%
Batchfile 0.4%
Other 0.3%