
How do I set up AI Dungeon Story Cards for NPCs, locations, and rules so the AI stays consistent?
Quick Answer: Set up AI Dungeon Story Cards by giving each major NPC, location, faction, and rule its own card with clear, concise details and a consistent format. Combine that with AI Instructions and Story Information so the auto-generation system can reference your lore and keep behavior, tone, and world rules stable over long adventures.
Why This Matters
If you’ve ever had an NPC “forget” their personality, watched a city morph into a completely different place, or had the physics of your magic system randomly change mid-campaign, you’ve hit the limits of raw model memory. Story Cards are how you push back. They give AI Dungeon an explicit, queryable lore bible—so instead of improvising from scratch every turn, the AI can look up who people are, how your world works, and what must not be broken.
Key Benefits:
- Consistent NPC behavior: Lock in personality, backstory, and relationships so characters don’t randomly shift tone or allegiance.
- Stable worldbuilding: Keep locations, factions, and items feeling like the same place/thing every time you revisit them.
- Enforced rules and tone: Spell out magic systems, tech limits, and narrative boundaries so the AI stops contradicting your genre or house rules.
Core Concepts & Key Points
| Concept | Definition | Why it's important |
|---|---|---|
| Story Cards | Structured lore entries (NPCs, locations, rules, items, factions, etc.) attached to a Scenario or Adventure. | They act as your live setting bible, giving the AI concrete facts to reference instead of making up new details every time. |
| AI Instructions | Custom guidance you add to Story Cards, Scenarios, and Adventures that tell the model how to write. | They steer tone and structure (e.g., gritty, comedic, low-magic) and reduce cliché, repetition, and unwanted content drift. |
| Story Information | Extra contextual notes about your story (party, current arc, key events) that feed into auto-generation. | Helps the upgraded Story Card generator create lore that actually fits your ongoing story instead of generic filler. |
How It Works (Step-by-Step)
At a high level, Story Cards + AI Instructions + Story Information work like this:
- You define structured cards for your NPCs, locations, rules, factions, etc.
- When you auto-generate or edit a card, AI Dungeon uses an upgraded, Story-Card-tuned model.
- That model reads your existing Story Cards, the story summary, Generator AI Instructions, and Story Information before it writes anything new.
- During play, memory and retrieval systems surface the most relevant cards so the AI can stay on-model and on-lore.
Here’s how to set it up for NPCs, locations, and rules so the AI stays consistent.
1. Plan Your Story Card “Categories”
Before you start clicking buttons, decide your core buckets:
- NPCs: Party members, recurring villains, quest-givers, rulers, mentors, important side characters.
- Locations: Home base, major cities, key dungeons, recurring shops, important realms/planes.
- Rules & Systems: Magic rules, tech constraints, house rules (no resurrection, limited ammo), narrative rules (no plot armor, game-over allowed).
- Optional but powerful:
- Factions (guilds, empires, cults)
- Items/Artifacts (legendary weapons, cursed objects)
- Species/Races and Cultures
You don’t need to card everything. Focus on anything you expect to recur and matter to the plot.
2. Create NPC Story Cards That Lock in Personality & Role
For each major NPC, create a Story Card with a predictable structure so your story stays coherent and the generator knows what to fill in.
A good NPC card usually has:
- Name & Role: Who they are in a single line.
- “Serra Thorne, exiled royal mage and your reluctant ally.”
- Core Traits: 3–6 behavioral anchors the AI can lean on.
- “Sarcastic, fiercely loyal once you earn her trust, quietly terrified of her own magic.”
- Visual Details: A few specifics so descriptions don’t become generic.
- “Scar over her left eye, burned fingertips, always wears the same cracked silver ring.”
- Motivations & Goals: What they want right now and long-term.
- “Short-term: Clear her name. Long-term: Break the monarchy’s control over magic.”
- Relationships & Boundaries:
- “Hates the Inquisition. Protective of the protagonist. Will not kill innocents, even under pressure.”
NPC AI Instructions (inside the card)
In the card’s AI Instructions section, you can shape how the AI uses this NPC. Example:
“Portray Serra as sharp-tongued but not cruel. Keep her afraid of losing control of her magic—she avoids flashy spell use unless stakes are high. She rarely explains her feelings directly; show them through actions and small physical tics.”
This reduces:
- Sudden, out-of-character kindness/meanness.
- Magic spam from a character who’s supposed to be cautious.
- Generic “mixture of emotions” descriptions.
Story Information for NPC-heavy arcs
In Story Information (at the Story Card generator level or Scenario/Adventure level), give context like:
“The current arc focuses on Serra confronting the Inquisition in her home city. Keep her guilt and anger at the forefront. The player is slowly earning her trust, but she hasn’t fully opened up yet.”
The upgraded Story Card model will use this when auto-generating new NPCs or fleshing out Serra’s card, keeping everything aligned with the current emotional arc.
3. Build Location Cards That Make Places Feel Persistent
Locations are where a lot of AI inconsistency lives—cities that teleport, castles that change layout, taverns that forget their owner. Fix that with structured cards.
For each important location, include:
- Name & Type:
- “Ashfall Keep — fortress on the edge of a volcanic rift.”
- Key Sensory Details: 3–5 vivid cues.
- “Thin layer of ash on every surface, sulfur on the air, red light bleeding through arrow slits.”
- Function & Vibe: What this place is for and how it feels.
- “Military outpost; tense, heavily patrolled, constant sense of impending eruption.”
- Important NPCs/Factions:
- “Commander: Captain Rhys Calder. Faction: The Ember Guard.”
- Rules & Risks:
- “Visibility often reduced by falling ash. Fire magic is dangerous here; miscasts can trigger tremors.”
Location AI Instructions
Use AI Instructions to nail tone and continuity:
“When scenes occur in Ashfall Keep, always mention at least one environmental detail (ash, heat, tremors, red glow). Emphasize the sense that the fortress is temporary, like it could be swallowed by the volcano at any time. Avoid describing lush vegetation or heavy rain here.”
This keeps the AI from accidentally dropping a rainstorm in your lava fortress or turning it into a generic stone castle.
4. Encode Rules, Systems, and “World Physics” as Cards
If you want the AI to respect your magic system, tech level, or narrative rules, treat those as first-class Story Cards.
Create cards like:
-
Magic System: The Ember Weave
- Core Premise: “All magic draws heat from the caster’s body.”
- Costs: “Overuse causes burns, exhaustion, and possible death.”
- Limits: “No time travel, no mind control, no resurrection.”
- Visual Signature: “Magic manifests as red-orange threads, visible to trained mages.”
-
World Rule: Death is Permanent
- “If a character dies, they do not return via revival, clones, or ‘it was all a dream.’ Only flashbacks or visions can show them again.”
-
Tech Level: Low Fantasy Medieval
- “No firearms, radios, computers, or modern medicine. Primitive black powder exists but is rare and unstable.”
Rule Card AI Instructions
Use AI Instructions to reinforce non-negotiables:
“Do not introduce resurrection, time travel, or technology beyond late medieval. If a character ‘cheats death,’ it must be via previously established magical artifacts that still obey the cost rules. Avoid deus ex machina rescues.”
These cards are your defense against the model casually dropping in a healing potion that reverses death or a steampunk airship in your grounded low fantasy setting.
5. Use AI-Assisted Story Card Generation (Without Losing Control)
AI Dungeon’s Story Card auto-generation now:
- Uses an upgraded, Story-Card-specific model.
- Reads your existing Story Cards, Story Summary, Generator AI Instructions, and Story Information before generating.
To use it effectively:
- Seed with just enough detail.
For a new NPC, type something like:- “A fanatically loyal Inquisition captain who used to be Serra’s mentor.”
- Hit “Generate New with AI” under the Name and Entry fields.
- Regenerate in pieces.
Don’t accept the first draft if it’s off. Use the “Generate New with AI” buttons for:- Alternate names
- Revised descriptions
- Edit manually to tighten.
Remove clichés and fluff. Replace “with practiced efficiency” and “a mixture of emotions” with specific actions and emotions.
If you’re not getting what you want, tweak the Generator AI Instructions (at the Story Cards level):
“Generate concise, specific Story Cards with clear personality traits and concrete sensory details. Avoid vague phrases like ‘a mixture of emotions’ or ‘with practiced efficiency.’ Keep entries under 200 words and focus on what affects gameplay and roleplay.”
6. Connect Story Cards to Scenarios, Adventures, and Memory
Story Cards don’t live in a vacuum—they’re part of a broader continuity system.
To keep the AI consistent over long runs:
- Attach Cards to the Scenario for world-level lore (gods, magic rules, global factions).
- Attach Cards to the Adventure for campaign-specific elements (current party, active villains, home base).
- Use Story Information at the Adventure level to describe:
- Current party members and goals.
- The current arc (“Siege of Ashfall Keep”).
- Recent critical events you want the AI to remember.
As you play, AI Dungeon’s memory system (summary + retrieval) pulls in relevant Story Cards and story summary so the model isn’t just guessing based on the last few turns.
7. Maintain and Evolve Cards as the Story Changes
Your world isn’t static. Neither should your Story Cards be.
Create a simple maintenance rhythm:
-
After major sessions/arcs:
- Update NPC cards with changed motivations (“now secretly working against the Inquisition”).
- Update location cards after big events (“Ashfall Keep is half-ruined; sections collapsed into the rift”).
- Add new rule cards when you canonize a new mechanic.
-
Retire or mark dead NPCs clearly:
- Add: “Status: Dead. Do not reintroduce as living.”
- Adjust AI Instructions if needed to emphasize only flashbacks or ghosts.
-
Keep cards concise:
If a card turns into a novella, the key details get buried. Move extra flavor into your Story notes and keep the card focused on what the AI must reliably know.
Common Mistakes to Avoid
-
Overloading one giant “everything” card:
Stuffing all your lore into a single mega-card makes it harder for the system to pull the right details. Instead, create multiple focused cards (one per NPC, location, or rule). -
Vague or contradictory instructions:
If your AI Instructions say “grimdark and brutal” on one card and “lighthearted and slapstick” on another in the same context, the model will wobble. Decide your baseline tone and use card-level instructions for nuanced variations, not hard contradictions.
Real-World Example
You’re running a long-term campaign set in the city of Blackfen, a fog-drenched port where the dead don’t stay quiet.
You set up:
-
Location Cards
- Blackfen City: Fog, tidal graveyards, church bells that ring for the restless dead.
- The Drowned Lantern Tavern: Primary social hub; smoky, low ceilings, rumor central.
-
NPC Cards
- Mara Voss, Gravekeeper: Stoic, speaks to ghosts like grumpy neighbors, secretly sympathetic to the undead.
- Captain Rhys Calder: City watch captain, overwhelmed, secretly in debt to a necromancer.
-
Rule Cards
- The Restless Dead: “Ghosts linger when killed violently in the fog. They’re bound to where they died unless anchored to a physical token.”
- Magic Limits: “No raising intact bodies as mindless zombies. Only spirits and bone constructs.”
In Story Information, you add:
“The current arc focuses on a surge of restless dead in Blackfen. The player is trying to uncover who is binding ghosts to powerful citizens.”
While playing, the AI:
- Keeps Blackfen’s fog and graveyards consistent every time you return.
- Remembers Mara’s dry humor and ghost-whispering habit instead of rewriting her as a generic priest.
- Stops the story from dropping in classic zombie hordes, instead using ghosts and bone constructs, because the rule card forbids “intact body zombies.”
Pro Tip: When you notice a moment of great characterization or world detail in the story (“Mara leaves a small lantern at every fresh grave”), copy it into that NPC’s or location’s Story Card. You’re effectively training your own mini-lore model over time.
Summary
If you want AI Dungeon to feel less like a forgetful improv partner and more like a co-GM who remembers the campaign, Story Cards are the backbone. Give major NPCs, locations, and rules their own clean cards, sharpen them with AI Instructions, and feed Story Information into the generator so new content matches your existing canon. Keep them concise, update them as the world changes, and let the upgraded Story Card model handle the heavy lifting while you focus on making trouble for your characters.