
How do I set up AI Dungeon Story Cards for NPCs, locations, and rules so the AI stays consistent?
You want the AI to feel like a good DM: it remembers your NPCs, keeps the world’s rules straight, and doesn’t suddenly turn your gritty city into a cozy farm. Story Cards are where you wire that consistency into AI Dungeon so your campaigns stop drifting and characters stop “resetting” every few turns.
Quick Answer: Use Story Cards as your world’s cheat sheet: one card per important NPC, location, faction, rule, or lore chunk. Put concrete, reusable facts in each card’s entry (appearance, goals, secrets, constraints), then use AI Instructions and Story Information to tell the model how to treat those cards. The auto-generation tools will then pull from existing cards + summary to keep the AI consistent as your story grows.
Why This Matters
Long campaigns die when the AI forgets who anyone is or how the world works. You feel it immediately: a love interest forgets your last conversation, a “no guns” fantasy setting suddenly spawns assault rifles, or a supposedly ruthless villain becomes a cuddly ally because the AI lost the thread.
Story Cards fix that by giving AI Dungeon a durable, queryable memory for:
- Who is in the story (NPCs, factions, monsters)
- Where things happen (locations, regions, planes)
- How the world behaves (magic rules, tech level, tone, house rules)
When those details live in structured cards instead of scattered prose, the AI’s auto-summarization and retrieval systems can reliably pull them into context. That’s how you get consistent NPC behavior, stable world rules, and plot consequences that actually stick.
Key Benefits:
- Stable characters: NPCs keep their personalities, goals, and relationships over long arcs, instead of whiplash mood swings or amnesia.
- Coherent worldbuilding: Locations and setting rules (magic, tech, tone) stay consistent across chapters, sessions, and even scenarios.
- Less micromanaging the AI: You spend less time correcting “actually, he has green eyes” and more time making risky choices that change the story.
Core Concepts & Key Points
| Concept | Definition | Why it's important |
|---|---|---|
| Story Cards | Structured notes for your world: NPCs, locations, items, rules, lore, etc. Each card has a Name, Entry (the content), and optional AI Instructions / Story Information support. | This is your canonical reference library. The AI checks these when auto-generating new cards and summarizing, which keeps your story’s logic intact. |
| AI Instructions (for cards & story) | Custom guidance text that tells the model how to write: tone, genre, perspective, formatting, and what to prioritize or avoid. | This steers outputs away from generic “robot prose,” repetition, or tonal drift, and keeps different cards aligned with your scenario’s style. |
| Story Information | Extra key details about your character, companions, locations, and events that the AI should consider when generating new cards. | This gives the generator more context, so new NPC/location cards plug cleanly into your existing plot and lore instead of contradicting it. |
How It Works (Step-by-Step)
At a high level, Story Cards are part of AI Dungeon’s memory system. When you auto-generate a new card, the upgraded Story Card model looks at:
- Your existing Story Cards
- The current Story Summary
- Generator AI Instructions (for Story Cards)
- Story Information
Then it outputs a detailed, consistent card that fits into what’s already there.
Here’s how to set it up specifically for NPCs, locations, and rules.
1. Plan your “card taxonomy”
Before you create anything, decide what gets a card and what doesn’t. You don’t need a card for every bartender and random goblin.
Recommended minimum set:
- NPCs
- Your main character (PC)
- Key companions / party members
- Major antagonists / rivals
- Recurring quest givers / authority figures
- Locations
- Home base / main city
- Recurring hubs (guild halls, taverns, safehouses)
- Signature dungeons / regions / planes
- Rules & systems
- Magic or power system rules
- Technology level + banned elements (e.g., “No firearms”)
- Tone and stakes (grimdark, cozy, “characters can die,” etc.)
- House rules (e.g., “No retcons unless player asks”)
Think of it like building a DM’s binder. If a detail will matter again later, it deserves a card.
2. Create clean, purpose-built NPC cards
Open your Scenario or Adventure, go to Story Cards, and create one card per significant NPC.
Card Name: Use a clear, search-friendly format:
NPC – Captain Eira ThornNPC – High Inquisitor Malvek
Entry: Break it into short, scannable sections. The AI’s summarizer and retriever love structure.
Example NPC card entry:
Role: Captain of the city guard in Blackstone, responsible for the docks district.
Appearance: Tall human woman in her 40s, short silver hair, weathered face, always wears a battered blue cloak with the guard insignia.
Personality: Blunt, pragmatic, suspicious of strangers, but secretly cares deeply for her officers. Hates corruption.
Motivations: Keep crime under control, protect the docks from smuggling rings, expose corrupt nobles.
Relationships:
- Distrusts the player at first but can become an ally if they prove honest.
- Loathes Lord Varyn, whom she suspects of funding smuggling operations.
Secrets: She used to work as a smuggler and hides this past from the guards and the player.
Constraints: Never behaves silly or cartoonish. She will not break the law outright, but she will bend rules to expose corruption.
Why this format works:
- The AI can reuse the same phrases (“short silver hair,” “battered blue cloak”) instead of inventing new looks each time.
- Clear “Motivations” and “Constraints” keep her behavior consistent, especially in tense scenes.
- “Secrets” let the model naturally foreshadow and reveal things later without inventing random twists.
Repeat this pattern for each major NPC. Keep each card focused; don’t cram multiple NPCs into one.
3. Build location cards that lock in the vibe
Locations are where the AI tends to go off rails: tech drift, tone drift, or sudden layout changes. Use cards to nail down the feel and rules of each place.
Name format:
Location – Blackstone DocksLocation – Emberhall TavernLocation – The Ashen Wastes
Example location card entry:
Type: Coastal city district; docks and warehouses.
Atmosphere: Foggy, damp, smells of salt and tar. Lanterns cast dim light on slick cobblestones. Frequent patrols by city guards, but crime still thrives in the shadows.
Key Features:
- Crowded piers with merchant ships and fishing boats.
- A hidden smuggler’s tunnel behind warehouse #13.
- The “Rusty Anchor” tavern where sailors, smugglers, and informants mingle.
Rules of the Area:- Curfew at midnight; guards become more aggressive after dark.
- Smuggling is common but covert; criminals avoid open violence that draws attention.
Tone: Grounded and gritty. No slapstick. Threat of violence is real; characters can get injured or killed if reckless.
Constraints: No advanced technology (no guns, radios, or modern electronics). Only medieval-level tech is allowed.
This gives the model a stable “palette” for scenes in that area. Whenever you enter the docks, it has concrete sensory details and constraints to pull from instead of improvising wildly.
4. Capture world rules and house rules in separate cards
Don’t bury important rules inside NPC or location cards. Give them their own Rule / System cards so the AI sees them as global.
Name format:
Rules – Magic SystemRules – Technology & WeaponsRules – Campaign Tone & StakesRules – Romance & Content Boundaries(if relevant)
Example “Rules – Campaign Tone & Stakes” card:
Overall Tone: Dark fantasy with grounded consequences. Violence, betrayal, and moral ambiguity are common.
Stakes: Characters can die. There is no guaranteed plot armor. If the player makes reckless choices, the story can reach a genuine GAME OVER.
Heroism: The player can still be heroic, but victories should feel earned, not automatic.
Humor: Occasional dry or gallows humor is fine, but no fourth-wall-breaking jokes or goofy slapstick.
Constraints for AI:
- Do not sanitize common dark-fantasy elements like violence, danger, or moral dilemmas.
- Avoid moralizing speeches about the player’s choices unless it fits an in-character NPC.
Now the model has a clear specification for tone, and it’s consistent with AI Dungeon’s philosophy: consequence-forward, non-moralizing storytelling.
5. Use AI Instructions to lock in style and behavior
Story Cards don’t exist in a vacuum. The auto-generation system now considers:
- Generator AI Instructions (for Story Cards)
- Story Information
- Existing cards + summary
In your Story Cards interface, you’ll see:
- AI Instructions – How the generator should write cards.
- Story Information – Extra context about your story.
For AI Instructions (Story Cards), you might set:
Write Story Cards in a clear, neutral narrative voice. Focus on concise, factual details that the AI can reuse consistently: appearance, personality, motivations, relationships, secrets, and constraints. Do not write in second person. Avoid flowery prose, clichés (“a mixture of emotions”, “with practiced efficiency”), and generic fantasy tropes. Always include “Constraints for AI” that describe how this NPC or location should never behave (tone, tech level, seriousness).
For Story Information, something like:
Player: A morally conflicted smuggler working the Blackstone docks, trying to escape their criminal past.
Companions: A young pickpocket (Lira), a disgraced ex-guard (Darian), and a mysterious mage (Selene) with unknown motives.
Setting: Medieval coastal city of Blackstone. Crime, corruption, and political intrigue are central. No advanced technology or firearms.
Ongoing Plot: The player is caught between the city guard captain (Eira Thorn) and a noble-backed smuggling ring led by Lord Varyn. The player’s choices will shape which side survives.
The improved generator will use this to make new NPCs and locations that fit Blackstone instead of generic sword-and-sorcery mush.
6. Let the AI auto-generate cards, then refine them
With the upgraded Story Card model, you can:
- Use “Generate New with AI” under the Name and Entry fields to:
- Brainstorm NPCs, locations, factions, etc.
- Quickly flesh out partial ideas.
Workflow:
- Create a new card and type a minimal prompt in the Entry (or just a Name).
- Click “Generate New with AI.”
- The generator looks at:
- Existing Story Cards
- Story Summary
- Generator AI Instructions
- Story Information
- It produces a draft card that matches your world.
Then you:
- Trim fluff: Remove generic lines (“She has a mysterious past”) and replace them with specifics.
- Add constraints: Always include a “Constraints” / “Constraints for AI” section.
- Check for conflicts: If the AI invented a detail that contradicts existing lore, edit it or regenerate.
Over time, you get a dense, high-signal set of cards the AI can rely on.
7. Keep cards updated as the story changes
Consistency isn’t “set and forget.” When something major happens, update the relevant cards:
- NPC changes allegiance? Update Relationships and Motivations.
- City gets burned, cursed, or conquered? Update the Location card.
- You introduce a new rule (e.g., magic now corrupts users)? Update the Rules – Magic System card.
These updates feed into auto-summarization and future generations, so the model doesn’t revert to the pre-change state.
Common Mistakes to Avoid
-
Making Story Cards too long and novel-like:
Overwritten, paragraph-heavy cards blur the important facts.
How to avoid it: Use headings and bullet-style sections (Role, Appearance, Motivations, Constraints). Keep each point punchy and factual. -
Skipping constraints and assuming the AI “gets it”:
If you don’t explicitly ban modern tech, fourth-wall jokes, or sanitized moral lectures, they will sneak back in.
How to avoid it: For every NPC, location, and rules card, include a “Constraints” section that spells out what the AI must not do.
Real-World Example
Say you’re running a long Harbinger-style dark fantasy campaign. The player betrayed the city guard and joined the smuggling ring. In a later session, they meet Captain Eira again in a ruined alley.
Because you’ve set up:
- An NPC card for Eira with:
- “Hates corruption”
- “Loathes Lord Varyn”
- “Might become an ally if the player proves honest”
- A Location card for the Blackstone Docks with:
- “Curfew at midnight”
- “Crime is covert, not flashy”
- A Rules – Tone & Stakes card with:
- “Dark fantasy, characters can die”
- “No slapstick; no sanitized moralizing”
The AI is primed to:
- Have Eira confront the player with bitter, grounded anger—maybe demanding proof they’re actually working against Varyn now.
- Stage the scene in foggy, lamp-lit alleys with tense, quiet danger instead of an anime-style shout-fest in broad daylight.
- Let this confrontation meaningfully risk injury, arrest, or even death if the player pushes their luck.
You didn’t have to restate all of that in the prompt. The Story Cards plus Instructions did the heavy lifting.
Pro Tip: When an interaction feels especially pivotal (a betrayal, a confession, a death), immediately update the relevant Story Card before continuing. This “locks in” the consequence so future scenes don’t accidentally undo it.
Summary
To keep AI Dungeon consistent across NPCs, locations, and rules, treat Story Cards as your world’s source of truth—not as flavor text. Create structured cards for every major character, place, and system, with:
- Concrete details the AI can reuse (appearance, motivations, relationships)
- Clear rules and constraints (tone, tech level, behavior limits)
- Custom AI Instructions + Story Information that teach the generator to match your campaign’s style
The upgraded Story Card auto-generation model then uses your existing cards, summaries, and instructions to create new content that fits your world instead of fighting it. Done right, you get what every long-term GM wants: a story that remembers itself, pushes back on the player, and still surprises you.