GameMaster-GPT is an exciting new open-source project aimed at revolutionizing the world of role-playing games (RPGs) by introducing an AI-powered Game Master. With the power of OpenAI's cutting-edge language model, this project enables the creation and facilitation of immersive RPG adventures like never before.
- Tested on Python 3.7.4 and 3.10.11
- An OpenAI secret key, retrievable at platform.openai.com. Copy .env.template to .env. Uncomment OPENAI_API_KEY and add your OpenAI secret key as a string to this entry.
### OPENAI ## OPENAI_API_KEY - OpenAI API Key (Example: my-openai-api-key) OPENAI_API_KEY=sk-1234567890abcdef
To install required libraries, run "pip install -r requirements.txt".
- At the command line type "python gm-gpt.py".
- When prompted for a character sheet type the name of a text file (in the Data directory) containing the character's details.
- 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.
- Once a premise has been specified, the GM 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.
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).
- What level is your character now?
- 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)?
- Your L1 character started with X gold/silver/copper. Do you have any other items of value?
- 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)).
Written by Damian Kilday and Daniel Powell