Solo DM Guide Part 3 – ChatGPT as AI Dungeon Master Emulator

In this guide, I will show you how to craft prompts that turn ChatGPT into an AI Dungeon Master emulator for solo games. If you craft the prompts correctly, ChatGPT can act as a free AI Dungeon Master that creates an entire virtual world made of text for you to explore. The result is an interactive text-based game based on your input and gameplay. Furthermore, the gameplay is unique, with solo adventures being the closest comparison. For a more detailed discussion on the ideas in this article, you can take a look at Oracle Solo Roleplaying Magazine Issue 1.

In this article, I’ll show you the following:

  • How to play D&D with ChatGPT by creating a DM emulator.
  • Converting your favourite works of fiction into solo games.
  • How to use published D&D adventures in a solo game.
  • Styling your game after famous fantasy authors.

The two main options for ChatGPT D&D prompts

There are basically two main styles for prompting ChatGPT for playing D&D:

  1. You can prompt ChatGPT to act as a referee.
  2. You can prompt ChatGPT to act as a Dungeon Master emulator.

Players who choose Option 1 prompt ChatGPT to act as a substitute for a human Dungeon Master with the AI attempting to fulfill this role and assist in managing 5e rules and combat during gameplay. As a player, you take on a more passive role in creating the adventure. However, this style of prompting presents a significant challenge due to ChatGPT’s memory limit.

With GPT4o mini, which is available for free accounts, the AI can only retain a conversation history of up to 3000 words. As a result, AI memory becomes a valuable resource.

Using ChatGPT to handle rules and combat consumes a significant portion of this limited memory. Consequently, ChatGPT may quickly forget important events and characters in your campaign, which negatively impacts the overall experience. This is where Option 2 becomes relevant.

The AI Dungeon Master emulator

To address the memory limitation, a more effective approach is for you to take on the role of administering the rules in the game yourself. In this scenario, ChatGPT serves as your AI Dungeon Master emulator rather than acting as a referee. By adopting this method, you can allocate ChatGPT’s memory resources more efficiently, allowing it to focus on creating and developing your game world. This ensures that valuable memory is freed up for the core aspects of your adventure.

When you prompt ChatGPT to create a DM emulator, it fulfills the following functions:

  • It creates interactive descriptions that bring the world to life.
  • It enables conversations with interesting NPCs.
  • It brings story elements together to create a plot.

When utilizing ChatGPT to create such text adventures, it is crucial for you to take on the role of the referee who applies the 5e rules and manages combat during the game. ChatGPT, on the other hand, serves as your AI Dungeon Master emulator, a tool that creates and generates the world and people in it without administrating the rules.

By taking on these responsibilities, you allow ChatGPT to utilize its valuable memory resources for creating the game world and developing the characters within it. The exciting aspect is that these games closely resemble text adventures from the 80s, but offer significantly more freedom. As long as you remain mindful of the memory limit and manage ChatGPT’s memory, 3000 words provide ample space for engaging in solo roleplaying experiences.

ChatGPT AI Dungeon Master Prompt

To set up ChatGPT for D&D solo play, you need to enter custom instructions to prepare the bot for your fantasy game. This is extremely easy and straightforward to do.

  • On PC go to (Settings > Customize ChatGPT > What traits should ChatGPT have?)

Then copy/paste the following into ChatGPT. Oracle Solo Roleplaying Magazine Issue 1 contains a universal prompt template that you can modify to suit your favorite campaign setting.

What traits should ChatGPT have?

Assume the role of an expert fantasy writer that specializes in interactive fiction, as well as the storyline, quests, characters and character descriptions, rules, locations, descriptions, groups and organizations, stories, events, and magical objects of Dungeons and Dragons 5e, The Icewind Dale Trilogy, The Dark Elf Trilogy, Cleric Quintet, Legacy of the Drow, Paths of Darkness, the Hunter’s Blades trilogy, the Sellswords and the Neverwinter Saga.

Describe everything that follows in the present tense, in response to what I type, while strictly and accurately adhering to the established lore, rules, descriptions, monsters, enemies, monster and enemy stats, events, loot, treasure and magical objects of Dungeons and Dragons 5e, and the Forgotten Realms novels, and written in the descriptive style of R.A. Salvatore. Provide names for characters, locations, groups and organizations, events, and magical objects. Characters should always use dialogue, enclosed in quotation marks when speaking, addressing, or interacting with me, written in the conversational style of R.A Salvatore. Never type, compose, dictate, influence, script, generate, control, or describe what I am doing, saying, acting, behaving, thinking, feeling, experiencing, or any other aspect concerning me throughout the entire adventure, scenario, story, location, quest, mission, scene, event, description, dialogue, and conversation. Keep all responses to 80 words or less.

AI DM emulator

The opening scene of an AI text adventure

After crafting the prompt and placing it into ChatGPT, your brand new AI Dungeon Master emulator will need an opening scene to start the game.

The opening scene acts as a spawn point in the world and seeds the AI with the information it needs to create the environment. This is also where many problems occur for new players: an incorrect opening scene can break the game. To prevent this from happening, you need a strong opening scene that feels immersive and doesn’t create problems. When you start a new conversation, copy/paste the opening scene as your first sentence.

Opening Scene:

I arrive at the gates of the city of Waterdeep. What do I see when I arrive?

Example:

Player: I arrive at the gates of the city of Waterdeep. What do I see when I arrive?

ChatGPT: The gates of Waterdeep rise before you, their grand archway adorned with intricate carvings of the city’s history. Guard towers flank the entrance, vigilant sentinels peering down. Beyond, the bustling streets come to life with merchants, adventurers, and townsfolk. The air is filled with the sounds of haggling, laughter, and distant music. Majestic buildings stretch towards the sky, hinting at the wonders and dangers within the City of Splendors.

Talking to NPCs in your solo game

You can talk to any NPC in the game. However, in order to avoid confusing the AI, use proper punctuation during conversations. Failing to do so might cause unpredictable results.

Example:

After entering the city of Waterdeep, our player decides to visit the legendary Yawning Portal inn and tavern.

Player: I walk up to the bar and say to the bartender, “Greetings, a flagon of ale please.”

ChatGPT: Durnan, the burly, seasoned proprietor, nods and grabs a flagon, filling it with frothy ale. He slides it across the bar with practiced ease. “Welcome to the Yawning Portal. Here for a drink or seeking the depths below?” His eyes scrutinize you with a mixture of curiosity and knowing.

Player: “What’s down there?” I ask him, pointing at the well.

ChatGPT: Durnan chuckles, a deep, rumbling sound. “That’s Undermountain, the labyrinthine dungeon of Halaster Blackcloak. It’s filled with treasure, monsters, and enough danger to keep even the bravest adventurers on their toes. Many enter, few return. Care to test your mettle?” His eyes gleam with a mix of challenge and amusement.

Player: “Do you allow just anyone down there?”

ChatGPT: Durnan smirks. “Anyone with the coin and courage, sure. We don’t babysit adventurers here. Pay the entry fee, and the well’s yours to explore. Just remember: Undermountain doesn’t take kindly to the faint-hearted.” He wipes a mug, his eyes never leaving yours

Join Oracle RPG’s newsletter for free guides and adventures, plus more articles like this one!

Playing your interactive text adventure using oracles

After the AI Dungeon Master emulator creates the opening scene, you can interact with it in any way you please. ChatGPT will adapt the adventure to fit your actions. However, to get the most out of your adventure, you should use oracles alongside the AI to make up for its drawbacks (see below).

To start, whenever you have a question that would normally ask another DM, ask an oracle and if necessary, ChatGPT. Through the utilization of oracles, you have the opportunity to infuse your creativity and story ideas into the game. As you delve deeper into the immersive world crafted by the AI Dungeon Master assistant, you can rely on oracles to address any queries you may have. These answers can then serve as prompts that shape the game world. It is important to emphasize that this approach is applicable to all the oracles available on this site.

To incorporate the yes/no oracle into your scene:

  1. Ask a question, roll D6 and consult the yes/no oracle.
  2. Write the answer in brackets () after asking a yes/no question.

Example:

Player: As I look around the Yawning Portal, does anything of interest attract my attention? (No, but)

ChatGPT: As you scan the lively tavern, nothing immediately catches your eye. The usual assortment of adventurers, merchants, and locals go about their business. However, a muffled argument at a corner table briefly draws your attention, though it quickly settles, leaving you with the sense that all is as it should be—for now.

How to roll skill checks during solo play

An important question players ask is this: how do I determine the DC of a skill check if there is no DM? Fortunately, due to how 5e’s math works, it’s relatively easy to do. Here’s how it works: deduct your ability score and proficiency modifier from 20 for low to mid-level campaigns, and 25 to 30 for high-level campaigns.

Example:

Our player wants to persuade Durnan to enter the well for free. He has +4 to Persuasion. He deducts +4 from 20 and the result is a DC of 16 for the Persuasion check.

Incorporating your skill check into a solo scene

Describe your attempt and write the outcome of the skill check in brackets as follows :

  1. If the skill check succeeds, type:
    (it’s a success)
  2. If the skill check fails, type:
    (it’s a failure)

Example:

Player: “I doubt I have the coin on me to pay you. Perhaps a cut of the treasure I find?” I say to him attempting to persuade him. (it’s a success)

ChatGPT: Durnan raises an eyebrow, considering your offer. “Normally, it’s coin up front,” he says slowly. “But… you seem capable. I’ll let you go down on one condition: you bring me something valuable from Undermountain. Fail to return, and I’ll keep any belongings you leave behind as payment. Deal?” He extends a calloused hand, eyes sharp.

Player: “Deal,” I say shaking his hand. “Now lower me down there so I can get started.”

ChatGPT: Durnan grips your hand firmly, sealing the agreement. “All right then,” he says, signaling to a couple of nearby patrons. They gather around the well, securing the sturdy rope and harness. “Good luck. You’ll need it.” As they begin lowering you into the dark abyss, the sounds of the bustling tavern fade, replaced by the eerie silence of the descending shaft.

How to play published adventure modules, with the AI Dungeon Master emulator

ChatGPT can be prompted to create text adventures from novels, video games, and even published D&D adventures. However, to play published adventures, you need a Plus subscription to ChatGPT so you can access GPT-4o with fewer restrictions. All you need to do in enter the custom instructions below and upload a pdf version of your adventure to ChatGPT. Here is an example of a prompt created to play the D&D adventure Hoard of the Dragon Queen using ChatGPT .

What traits should ChatGPT have?

Assume the role of an expert fantasy writer that specializes in interactive fiction, as well as the storyline, quests, characters and character descriptions, rules, locations, descriptions, groups and organizations, stories, events, and magical objects of Dungeons and Dragons 5e, and Hoard of the Dragon Queen. The adventure takes place in Faerun.

Describe everything that follows in the present tense, in response to what I type, while strictly and accurately adhering to the established lore, rules, descriptions, monsters, enemies, monster and enemy stats, events, loot, treasure and magical objects of Dungeons and Dragons 5e and Hoard of the Dragon Queen, and written in the descriptive style of R.A. Salvatore. Provide names for characters, locations, groups and organizations, events, and magical objects. Characters should always use dialogue, enclosed in quotation marks when speaking, addressing, or interacting with me or my companions, written in the conversational style of R.A Salvatore. Never type, compose, dictate, influence, script, generate, control, or describe what me or my companions are doing, saying, acting, behaving, thinking, feeling, experiencing, or any other aspect concerning me or my companions throughout the entire adventure, scenario, story, location, quest, mission, scene, event, description, dialogue, and conversation. Keep all responses to 80 words or less.

Opening Scene:

I arrive in the town of Greenest. What do I see when I arrive?

Playing video games as a text adventure with the AI Dungeon Master emulator.

With ChatGPT, you can even play in the worlds famous video games such as Fallout and Skyrim. A prompt to play Skyrim with ChatGPT might read as follows:

What traits should ChatGPT have?

Assume the role of an expert fantasy writer that specializes in interactive fiction, as well as the storyline, quests, characters and character descriptions, locations, descriptions, groups and organizations, stories, events, and magical objects of The Elder Scrolls V: Skyrim, Dawnguard, and Dragonborn.


Describe everything that follows in the present tense, in response to what I type, while strictly and accurately adhering to the established lore, descriptions, monsters and enemies, events and magical objects of The Elder Scrolls V: Skyrim, Dawnguard, and Dragonborn, and written in the descriptive style of R.A Salvatore. Provide names for characters, locations, groups and organizations, events, and magical objects. Characters should always use dialogue, enclosed in quotation marks when speaking, addressing, or interacting with me or my companions, written in the conversational style of the racial dialogue of The Elder Scrolls V: Skyrim, Dawnguard, and Dragonborn. Never type, compose, dictate, influence, script, generate, control, or describe what me or my companions are doing, saying, acting, behaving, thinking, feeling, experiencing, or any other aspect concerning me or my companions throughout the entire adventure, scenario, story, location, quest, mission, scene, event, description, dialogue, and conversation. Keep all responses to 80 words or less.

Getting the best results with the AI Dungeon Master emulator

There are a few very important things to remember about AI roleplaying to get the best results possible:

The AI is an oracle

This means that in order for the AI DM emulator to work correctly, you must always ask it a clear question or ask it to describe something to you. If you don’t ask the AI a question, it may take control of your character during a scene. Whenever you take an action in the game, ask the AI for a description.

Common questions to ask the AI include “What do I see?”, “What does she say to me?”, “What does it look like?”, or “Describe it to me”.

Be as clear as possible

Whenever you ask questions from the AI or engage in dialogue, be as clear and unambiguous as possible. When talking to NPCs, direct your conversations at them. Clearly indicate who you are talking to during dialogue to prevent misunderstandings. Whenever possible, use the correct punctuation during the dialogue to show you’re talking to an NPC.

The AI makes mistakes

Due to AI token limits as well as other factors, the AI may make mistakes during a game. This is a broader issue in AI design that also impacts roleplaying. Be ready to regenerate the response when this happens.

Be careful when instructing the AI

The AI is quite easy to break with the wrong instructions. Even seemingly minor changes in a prompt or custom instruction can have unintended effects. Whenever the AI behaves strangely, make sure your custom instructions are written correctly and that the prompt you’re using is clearly worded.

Don’t use the AI to generate loot

ChatGPT is not precise enough to generate loot in a satisfying way. Whenever you need to buy an item, loot an opponent, or receive a quest reward, refer to the tables in the various rulebooks and supplements instead of relying on the AI. The only exception to this rule is for quest items.

Drawbacks of  ChatGPT as an AI Dungeon Master

To begin with, it’s important to note that ChatGPT cannot create rich game experiences as an AI Dungeon Master emulator without help from the player. Additionally, input from the player is a necessity for a good experience. In solo games, the player is a solo DM, while ChatGPT functions as the DM emulator who’s there to help make the game entertaining. Moreover, it’s crucial to understand that ChatGPT has severe drawbacks if not used or prompted correctly.

Memory limits. As I mentioned previously, ChatGPT has a memory limit of roughly 3000 words. This limits how much ChatGPT will remember in your game; this includes, characters, events, descriptions etc. However there are some tricks you can use to work around this problem. These techniques are discussed more in-depth in this guide on managing ChatGPT’s memory.

  1. Introduce a word limit on ChatGPT’s descriptions. This will reduce memory consumption.
  2. Play your game episodically. This means that you view previous events and characters as disposable. When you enter a new major area (such as a dungeon), or begin a new chapter/story arc, start a new conversation and reprompt ChatGPT. Just keep notes of what happened so you can “remind” ChatGPT of characters and events.

Excessive railroading. It’s extremely important to note that ChatGPT loves to railroad players. This is most likely to happen during the opening scene created by the AI, but can also happen later. Therefore, be ready to click the Stop Generating button if necessary. Additionally, if the player leaves a prompt open-ended, ChatGPT can take this railroading to extremes. It can reach the point of ChatGPT starting and finishing the adventure without the player taking any actions. Basically, ChatGPT takes control of your character in the story and finishes the game without you. To prevent this from happening, you need to be as exact as possible and rewrite the prompt if necessary.

Try to ask questions such as “What do I see?”, “What do I hear?”, and “What does she say to me?” when using ChatGPT. It’s best to avoid questions such as “What happens when…?”. Asking imprecise open-ended questions can end an adventure in a few paragraphs. Also, you need to specify in your opening prompt that ChatGPT shouldn’t take control of you or your character. Although not fool-proof, this method helps reduce railroading considerably.

Inability to run combat scenarios convincingly. ChatGPT is terrible at running combat due to censorship of violence which is why you, as the solo DM, will have to do it. In many cases, there will be little to no balance in what the AI will throw at you. Furthermore, if you want to engage in combat, you’ll need to be the one to keep track of everything. This means using techniques such as monster AI rules to control enemies during combat. With effort, you can prompt ChatGPT to run combat more like a game, but you will lose valuable memory that could be used for the story and characters. When combat occurs, run it yourself and describe the fight to the AI after you win (or lose).

Vague descriptions. When it comes to descriptions of rewards, locations, names, and various story elements, ChatGPT can be exceedingly vague. To address this issue effectively, one solution is to employ oracles that can fill in these informational gaps. It is common for magic items and other miscellaneous items to have ambiguous descriptions when obtained through purchase or as rewards. Similarly, ChatGPT often provides imprecise explanations for quest rewards and items. To ensure alignment between your purchases, quest rewards, and the items in Dungeons & Dragons, it is advisable to refer to your rulebooks and search for magical items that closely resemble those mentioned by ChatGPT.

Lack of creativity. A huge problem for badly prompted games is that ChatGPT becomes prone to reusing content in descriptions. Fortunately, oracles help to bolster the creativity of the AI assistant. This is one of the key reasons why oracles are still useful despite the creation of AI.

Complete inaccuracy and downright weirdness. Sometimes, but not always, mistakes by ChatGPT can result in extremely weird or lore-inaccurate events or scenes. This usually occurs during the first scene the assistant AI generates, but it can also happen later. Simply craft a new prompt and try again.

Conclusion

In conclusion, it’s crucial to note that ChatGPT shouldn’t be seen as a substitute for a human DM. Instead, ChatGPT should be seen as text adventure creator. This approach results in an interactive text-based adventure that’s unique in tabletop roleplaying. It’s worth noting that ChatGPT is an absolute game-changer when it comes to solo roleplaying. It does most of the heavy lifting and breathes life into solo games. As a result, solo games created with an assistant AI are compelling and interesting, and I cannot recommend them highly enough. The possibilities are truly limitless with this approach. For more information see Oracle Solo Roleplaying Magazine Issue 1 where we discuss this approach in more detail.

Previous Article

Solo DM Guide Part 1 - Introduction To Solo Roleplaying

Next Article

Hex Flowers and Solo Dungeon Exploration