Skip to content
Artifice
All posts
designrulesguides

ChatGPT as a D&D Dungeon Master: Why Combat Breaks

ChatGPT can run a D&D story, but combat breaks: rolls are just text and nothing tracks HP or turns. Here's why, how to fix it, and what a rules engine changes.

Updated

Artifice — AI Tabletop RPG logo over an illustrated woodland battle map

Yes, ChatGPT can play Dungeon Master, and it’s good at the story part. Combat is where it breaks, because a chatbot has no rules engine: it writes the numbers as text, makes rulings up as it goes, and has nothing that tracks HP, turn order or positions, so the math drifts. The fix is to split the jobs. Let code (or your own dice) handle the rolls and the fight, and let the AI narrate.

TL;DR:

  • Why it breaks: a chatbot writes rolls as text, decides rulings on the fly, and has nothing that tracks HP, turns or positions.
  • What it looks like: lucky rolls whenever the story needs them, HP that drifts, skipped turns, rules that change from fight to fight.
  • What helps today: roll your own dice, keep your own tracker, and make it show its math.
  • What a rules engine changes: code rolls the dice and tracks the fight, and the AI only tells the story. That’s how I built Artifice.

Ask a language model to run a combat round and it does something remarkable. It describes the swing of the blade beautifully, and then it quietly gets the arithmetic wrong. Not every time. Just often enough that by the third session someone at the table is keeping their own notes, and the game has turned into a game about auditing the Dungeon Master.

I build Artifice, a browser TTRPG with an AI Dungeon Master, and splitting story from math is the biggest design call I’ve made. Here’s why chatbot combat goes wrong, how to fix it with ChatGPT, and what changes when code owns the rules.

What goes wrong when ChatGPT runs a fight

Here’s an illustration of how a fight with a chat-only DM often goes. It isn’t a real transcript, just the pattern players describe.

Three goblins jump your Fighter on a forest road. You say you attack the closest one. The DM replies that you rolled a 17, your sword bites deep, and the goblin staggers back. It never says what the goblin’s AC is or how much damage you did. On the goblins’ turn, two of them miss you in dramatic fashion. Two rounds later, the goblin you “staggered” fights on like nothing happened, and the third goblin seems to have skipped its turns entirely.

None of that is a big lie. It’s drift, and once you notice it, you can’t unsee it.

The symptoms players report are almost always the same:

  • Convenient rolls. Hits land when the scene wants drama, and misses happen when the story needs tension.
  • HP and damage drift. Damage is described but never subtracted, or a creature’s HP quietly goes up.
  • Initiative falls apart. Turns get skipped, merged or played out of order.
  • Fuzzy positions. Distances and who is next to whom change from one reply to the next.
  • Made-up rules. A ruling is invented on the spot, then handled a different way the next time.

Why a chatbot can’t keep combat straight

A chatbot knows the rules in general. It breaks because it writes the next likely words, with nothing underneath that holds the state of the fight.

Two jobs at the table: rulings and story

There are two jobs at a tabletop. One is adjudication: what does a 17 hit, how far can you move, how much damage comes off. The other is narration: what the ambush looks like, what the bandit captain wants, whether the villager is lying.

The first job has exactly one correct answer, and it’s arithmetic. The second job has no correct answer at all, and that’s the point of playing. A language model is great at the second job and built wrong for the first.

A number in a chat isn’t a dice roll

When a chatbot DM writes “you rolled a 17”, that 17 is part of the reply, just like the words around it. In a normal DM chat there’s no visible roll you can check, no record of the die, and nothing that stops the number from fitting the story a little too well.

That’s the honest answer to “does ChatGPT fudge dice?” It isn’t cheating on purpose. The model is writing a good scene, and a good scene leans toward the dramatic roll. You just have no way to check it.

Nothing is tracking the fight

A real table has a character sheet, an initiative list and a map. In a chat, HP, turn order and positions only exist as text in earlier messages. As the fight gets longer, those details get buried, summarized or lost, and the model fills the gaps with whatever sounds right. Forgetting is a bigger problem than combat alone, and I explain it in why AI Dungeon Masters forget your campaign.

Can you trust an AI DM’s dice?

You can trust dice you can check. That goes for ChatGPT and for any AI DM you try. Before you trust a tool with a fight, run through this checklist:

  • Who rolls? The roll should be made by code, not written by the model as part of the story.
  • Can you see the result and the modifier? “You rolled 12, plus 5, for 17” can be checked. “You hit!” can’t.
  • Can you see what it had to beat? An attack roll hits if it meets or beats the target’s AC. If you never see the AC (or the DC for a check), you can’t tell a hit from a story beat.
  • Does HP change by exactly the damage shown? If the goblin took 6 damage, its HP should be 6 lower. Every time.
  • Do you get the same result if you ask again? If regenerating a reply turns your miss into a hit, the roll was never real.
Chat-only DM DM with a rules engine
Who rolls the dice The model writes a number Code rolls it
Who tracks HP and turn order Nobody; it’s in the chat text The engine
Who decides rulings The model, on the fly Rules written into the engine
Can you check it Not really Yes, outcomes trace to dice and modifiers

A model that writes the numbers can’t be audited. A rules engine that rolls them can. I looked at exactly this when I compared how six AI DMs handle the rules.

How to make ChatGPT a better DM for combat

If you like playing with ChatGPT, you don’t have to quit. You just have to take the math away from it. These habits fix most of the drift:

  • Roll your own dice. Use physical dice or any dice app, for your rolls and the monsters’ rolls, and tell the DM the results.
  • Keep your own tracker. Write down HP, AC, initiative order and rough positions for everyone in the fight, and paste it in at the start of each round.
  • Make it show its math. Ask for every roll with the modifier and the number it had to beat.
  • Give it the monster’s stats. Paste in the stat block instead of letting it invent one. A goblin from the free 5e rules, for example, has AC 15 and 7 hit points.
  • Keep fights small. Three goblins stay straight much longer than a dozen bandits and their captain.

Here’s a short add-on you can paste after your usual DM prompt:

For combat, follow these rules:
1. Don't roll for me. Ask me for my d20 and damage rolls and wait for my reply.
2. For monsters, show each roll, the modifier, and the target's AC.
3. At the end of every turn, print a status block: each creature's HP, AC, position, and the turn order, with whose turn is next.
4. Only subtract the exact damage rolled.

For the full step-by-step and a starter prompt for the rest of the game, see how to play D&D solo (method 4, Option A).

What a rules engine changes

In Artifice, the rules engine owns adjudication from start to finish. It’s a built-in deterministic rules engine that resolves dice, combat and character mechanics: initiative, HP, movement, attacks, actions, bonus actions and reactions. It all runs in ordinary code, the kind you can write tests for. Artifice uses a slightly modified D&D 5e (2024) ruleset, and you play on a 3D tabletop with 3D miniatures, 3D dice and a real 5 ft grid.

The model never rolls a d20. It gets the outcome (your attack missed by one, and the bandit captain is still at 4 hit points) and does the thing it’s good at. For example, it might narrate:

Your blade turns on his shoulder plate and skids wide. He grins at you, which is worse than if he’d shouted.

That sentence is generated. The 4 hit points are not.

This had a result that surprised me in playtesting. When the mechanics stop being negotiable, players stop arguing with the Dungeon Master and start talking to it. Nobody says “that’s not how opportunity attacks work.” They say “I try to get behind him.” The conversation moves back up to where the fun is.

The rules engine rolls the dice, not the model

You can always improvise around a rule that doesn’t exist. You can’t improvise around a rule that silently lies to you. That’s why, in Artifice, code keeps the numbers and the AI keeps the story, and every mechanical outcome is traceable to dice and modifiers.

Artifice is in Early Access. It’s solo today, multiplayer coming later. Artifice is free, and the way in is through Discord. For the whole design, read the overview of Artifice’s AI Dungeon Master in 3D.

Join the Artifice Discord server

FAQ

Can ChatGPT be a Dungeon Master?

Yes, for story and improv: scenes, NPC voices, strange plans. For combat, handle the dice and the tracking yourself, or use a tool with a rules engine.

Does ChatGPT fudge dice rolls?

In a normal chat, a roll is text the model writes, so it can drift toward what the story wants, and you can’t check it. Roll your own dice, or use a tool where code makes the roll.

Can ChatGPT run D&D 5e combat?

It knows the 5e rules in general: roll initiative, roll a d20 to attack against AC, subtract damage from HP. What it lacks is anything that tracks the fight, so HP, turns and positions slip over time. Keep your own tracker, or use a DM with a rules engine.

Do AI Dungeon Masters cheat?

Not on purpose. The real question is who rolls the dice: the model, or code you can check. Use the checklist above.

Is there an AI DM where code rolls the dice?

Yes. In Artifice, the rules engine rolls the dice and resolves combat, and the AI only narrates what happened. Mechanical outcomes are traceable to dice and modifiers.

Join the Artifice Discord server

Play it, don't read about it

Pick a map, muster a party, and the Dungeon Master opens the scene.

Begin a campaign