Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

depwl9992/faith-n-tech_d7d

Repository files navigation

As of June 9, 2023, this is now an archive

dmkilday has taken over the master copy at https://github.com/dmkilday/GameMasterGPT.

faith-n-tech_d7d

Running a D&D bot via OpenAI API

Requirements

To install required libraries, run "pip install -r requirements.txt".

How to play

  1. At the command line type "python d7d.py".
  2. When prompted for a character sheet type the name of a text file (in the Data directory) containing the character's details.
  3. When prompted, enter an adventure premise. To have the DM generate a premise based on your character sheet, just hit enter when prompted for the premise.
  4. Once a premise has been specified, the DM will start your adventure. When prompted to roll, simply type your roll in the format [die count]d[die size]. For example, to roll one 20 sided die, you would type 1d20 (or just d20 if you are only rolling 1 die) and hit Enter. The program will roll for you and report back to the DM your roll results.

Notes and Todo

Player Menu

  • Character Generation
    • Input your name, race, class, & background (let me provide ones)
    • Input your Level 1 stats (or let me provide one)
      • What level is your character now?
        • Input level-up stat increases or optional feats (or I can provide them for you).
    • Input your backstory and description (height/hair color/eye color/gender), or let me provide one.
      • For user-provided backstory, process length and content, optionally prompt to offer expansion if it's short.
    • Input known/learned spells for spellcasters (or let me pick)
    • Input equipment in addition to class/background equipment (or let provide it)
      • Your L1 character started with X gold/silver/copper. Do you have any other items of value?
        • Do you want to spend any of that to buy more equipment now (I can make recommendations too)?
    • Input your flaws, bonds, and other features (or let me suggest a few based on your backstory (and the backstories of other players in the case of bonds)).

Credits

Written by Damian Kilday and Daniel Powell