Menu
← Back to Blog
DM's workspace with world maps, plot outlines, and NPC sketches spread across a desk
¡Anthony Goodman

How to Write a D&D Campaign From Scratch (Without Losing Your Mind)

dm-tipsguidedungeons-and-dragonscampaign-building

Three notebooks. A folder of loose-leaf paper covered in NPC names. A map drawn on the back of a pizza box. That was my first campaign, and it lasted exactly two sessions before I realized I had no idea what I was doing.

The problem wasn't a lack of ideas. I had too many. A dragon war, a thieves' guild conspiracy, a god trying to eat the moon - all crammed into the same campaign with zero connective tissue. My players were confused. I was drowning. We went back to Lost Mine of Phandelver and I pretended the whole thing never happened.

It took me another year to try again, and by then I'd figured out the thing nobody tells you about writing a D&D campaign: it's not about building a world. It's about building a situation your players want to mess with.

Start With a Conflict, Not a Map

The single biggest mistake new campaign writers make is starting with worldbuilding. You spend three weeks drawing continents, naming taverns, writing a 5,000-year history - and then your players ask "so what are we doing?" and you freeze.

Start with a conflict instead. One sentence. Something is wrong in the world and someone needs to fix it.

  • A plague is turning villagers into something not quite undead
  • Two rival factions are about to start a war over a dead king's throne
  • An ancient seal is cracking and nobody remembers what it was keeping locked away

That's your campaign. Everything else - the world, the NPCs, the dungeons - grows out of that central tension. You don't need a map of the entire continent. You need to know what's broken and who broke it.

Write your campaign concept as a movie logline: "When [inciting event], [protagonists] must [goal] before [stakes]." If you can't fit it in one sentence, you're overcomplicating it.

How to Write a D&D Campaign Arc

A campaign arc isn't a plot. Plots are rigid. Arcs are flexible. The difference matters.

A plot says: the players go to Location A, meet NPC B, learn Secret C, fight Boss D. When your rogue decides to pickpocket NPC B instead of talking to them, the plot breaks.

An arc says: there's a problem escalating in the background. The players encounter it from different angles. Eventually, they have enough information and motivation to confront the source. How they get there is their business.

Structure your campaign arc in three phases:

Phase 1: Something's wrong. Sessions 1-4. The players encounter symptoms of the central conflict. Strange things happening. People acting weird. Jobs that seem unrelated but share a thread. They don't need to understand the full picture yet. They just need to feel that something is off.

Phase 2: It's worse than they thought. Sessions 5-10. The players understand the real threat. They've met the antagonist or discovered the scope of the problem. The stakes become personal - someone they care about is affected, or they realize they're the only ones who can act. This is where the campaign gets its hooks in.

Phase 3: Confrontation. Sessions 11-15 (or whenever it feels right). The players have what they need to face the central conflict head-on. This doesn't mean a boss fight - it could be a negotiation, a heist, a desperate ritual. But there's a climactic moment where everything they've built toward pays off.

Fifteen sessions isn't a rule. Some campaigns are five sessions. Some are fifty. But the three-phase structure scales.

⟡

Build NPCs Your Players Will Actually Remember

You don't need a hundred NPCs. You need five really good ones.

Here's what makes an NPC stick: they want something the players can interact with. Not a backstory. Not a funny voice (though those help). A want.

The blacksmith who wants to retire but can't because his apprentice disappeared. The noble who wants to prove she's more than her family name. The villain who wants to save the world through methods the players find horrifying.

When an NPC wants something, your players have a decision to make: help, hinder, or ignore. That's gameplay. A shopkeeper with no wants is just a vending machine.

The NPC shorthand method: For every NPC, write three things.

  1. What they want
  2. What they'll do if the players don't intervene
  3. One specific detail (a scar, a verbal tic, a piece of clothing)

That's it. You don't need a full biography. You need enough to improvise with when your players inevitably ask that NPC a question you didn't prepare for.

  1. Tavern keeper - Wants to sell the tavern. Will leave town in two weeks. Always polishing the same glass.
  2. Guard captain - Wants to find out who killed her mentor. Will take the law into her own hands. Missing ring finger.
  3. Local priest - Wants to keep a secret buried. Will betray the party if they dig too deep. Speaks in a whisper even outdoors.

Session Zero Isn't Optional

I used to skip session zero. "Let's just play, we'll figure it out." This is how you end up with a party containing a brooding loner assassin, a chaotic evil arsonist, and a pacifist cleric who refuses to enter combat. Fun for nobody.

If you're not sure what Session Zero actually is, it's the pre-game conversation where your group aligns on expectations before the adventure starts. Session zero is where you write a D&D campaign with your players instead of at them. Cover these things:

Tone and content. Is this a dark, gritty campaign or a lighthearted romp? Are there topics anyone wants to avoid? Get this out of the way before session one, not during an awkward moment in session four.

Party connections. Characters should have a reason to work together before the campaign starts. "You all meet in a tavern" works, but "two of you served together in the army and the third is the sibling of one of you" is better. Let players build connections during session zero.

Campaign pitch. Give them the logline. Tell them what kind of adventure this is. "This is a mystery campaign set in a single city" sets different expectations than "this is a wilderness survival hex crawl." Players make better characters when they know what they're signing up for.

Practical stuff. How often are you meeting? How long are sessions? What happens when someone can't make it? These questions aren't exciting but they kill more campaigns than any dragon.

Worldbuilding: The Three-Mile Rule

Build what you need for the next session. Nothing more.

I call this the three-mile rule: detail the world within three miles of where your players currently are. The next town over? A name and one interesting fact. The capital city? It exists. The continent across the ocean? Your players will never go there, and if they do, you'll have weeks to prepare.

This isn't lazy. It's efficient. And it produces better worlds than the encyclopedic approach, because the places your players actually visit get your full creative attention.

What you need for a starting location:

  • One settlement with 3-5 named locations (tavern, temple, market, etc.)
  • The surrounding terrain and one notable landmark
  • One current problem the players can engage with immediately
  • Two rumors - one true, one misleading
  • A reason players can't just leave (or a reason they'd want to stay)

That's a session one. You can build it in an hour. The rest of the world emerges through play, and half your best ideas will come from things your players say at the table.

Worldbuilding is a collaboration whether you plan for it to be or not. When a player asks "is there a library in this town?" and it would make sense, the answer is yes - and now you have a library. Embrace it.

⟡

Write Encounters, Not Scenes

New DMs write scenes. "The players enter the throne room. The king rises from his throne and says..."

Experienced DMs write encounters - situations with multiple possible outcomes based on player choice. The difference is agency.

An encounter has:

  • A situation: What's happening when the players arrive
  • Stakes: What happens if they act vs. if they don't
  • Multiple resolution paths: Combat, negotiation, stealth, magic, running away

Not every encounter is combat. A tense negotiation with a crime lord is an encounter. A collapsing mine shaft the party needs to escape is an encounter. A moral dilemma with no right answer is an encounter. If the players have meaningful choices to make, it's an encounter.

Write 2-3 encounters per session. Some sessions you'll use one. Some sessions you'll use all three and need to improvise a fourth. That's fine. Unused encounters aren't wasted - they're future sessions.

The Villain Problem (And How to Fix It)

Most homebrew campaign villains are boring because they're too distant. The players hear about the Dark Lord in session one and don't meet them until session fifteen. That's fourteen sessions of fighting minions and hearing secondhand about how scary someone is.

Fix this by making your villain present early and often. They don't need to fight the players. They need to be felt.

  • The villain sends a polite letter congratulating the players on their progress
  • The villain's lieutenant shows up to the same tavern and buys the players a drink
  • The players find a town the villain has already "helped" - everything's perfect and everyone's terrified
  • The villain solves a problem the players were struggling with, just to prove a point

A villain the players have interacted with personally is a villain they want to defeat. A villain they've only heard about through exposition is a homework assignment.

And here's a take that'll get me angry comments: your villain should be right about something. Not right overall, but right about a specific problem. The best D&D villains are the ones where a player says "I mean... they have a point." That moral complexity makes the eventual confrontation land harder than any stat block.

Session Prep: The 30-Minute Method

You do not need to prep for four hours before every session. If you're spending more time prepping than playing, something's broken.

Here's what 30 minutes of session prep looks like:

Minutes 1-5: Review. What happened last session? What threads are the players pulling on? What did they say they wanted to do next?

Minutes 5-15: Encounters. Write 2-3 encounters for the most likely directions. Bullet points, not paragraphs. Situation, stakes, possible outcomes.

Minutes 15-25: NPCs and details. Any new NPCs they'll meet? Use the three-line method. Any specific descriptions or reveals you want to nail? Write those exact sentences down.

Minutes 25-30: Secrets and clues. What information could the players discover this session? Write each clue on a separate line. Don't attach clues to specific locations or NPCs - if the players skip the library, the clue shows up somewhere else. This technique comes from The Alexandrian's "Three Clue Rule" and it's the most useful DMing advice ever written.

If a clue only exists in one place, your players will miss it. Always have at least three ways for players to discover any critical piece of information. If it's important enough to gate the story behind, it's important enough to be findable.

When Your Campaign Goes Off the Rails

It will. Accept this now.

Your players will ignore the burning village to chase a random NPC you invented on the spot. They'll befriend the villain's minion and try to start a revolution. They'll spend an entire session opening a door you described as "slightly ajar" because they're convinced it's trapped.

This isn't failure. This is D&D working as intended.

When the campaign goes off your planned path, you have two tools:

Redirect gently. The consequences of the world keep happening whether the players engage or not. If they ignored the burning village, the fire spreads. Refugees show up wherever the players are. The problem finds them. You're not railroading - you're showing that the world is alive.

Follow them. Sometimes the players' idea is better than yours. The random NPC they're obsessed with? They're now important. The door? Fine, it's trapped now, and behind it is something interesting. The best campaigns are co-authored, and players who feel like their choices matter will invest more deeply in the story.

The campaign you end up running will be about 40% what you planned and 60% what emerged from play. That's a good ratio.

⟡

Tools That Actually Help

A quick rundown of things that make campaign writing less painful.

Notion / Obsidian

DMs who like organizing notes with linked pages

Price:FreeComplexity:

Both work well for campaign wikis. Obsidian's local-first approach means your notes won't disappear if a company goes under. Notion's better if you want to share pages with players. Pick whichever matches how your brain works.

Owlbear Rodeo

Virtual tabletop without the learning curve

Price:FreeComplexity:

If you're running online sessions and don't want to learn Roll20's interface, Owlbear Rodeo does maps and tokens with almost zero setup. It won't run your character sheets, but it'll show your players where the goblins are.

StoryRoll

Solo testing your campaign or running AI-assisted sessions

Price:Free (early access)Complexity:

We built this, bias acknowledged. But if you want to test-run your campaign encounters before bringing them to the table, an AI dungeon master that actually tracks state and remembers context is genuinely useful for that. Write your villain's monologue, throw it at an AI player, and see if it lands. It's like rehearsal for DMs.

Random generators. donjon.bin.sh for dungeons, names, and treasure. Kassoon for NPCs. These aren't replacements for creativity - they're starting points when you're staring at a blank page.

Steal from everything. The best campaign ideas come from non-D&D sources. A thriller novel's plot structure. A video game's faction system. That weird dream you had about a library where the books scream. File the serial numbers off and make it yours.

Try These Free Tools

Speed up your campaign prep with these free resources:

  • NPC Name Generator — Generate names for every shopkeeper, villain, and quest-giver in your campaign.
  • Tavern Name Generator — Name the inns, taverns, and hangouts your players will visit.
  • Encounter Calculator — Balance encounters for your party's level without doing the math by hand.

Frequently Asked Questions

How long should a D&D campaign be?

There's no correct length. A campaign can be 3 sessions or 300. Most homebrew campaigns that actually reach a satisfying conclusion run between 12 and 30 sessions. Plan a campaign with a clear ending in mind - you can always extend it if the table's having fun, but an open-ended campaign with no goal tends to fizzle around session 8.

Can I write a D&D campaign if I've never DMed before?

Yes, and honestly it might be easier than running a published module for the first time. When you wrote the material, you understand it intuitively. You don't need to memorize someone else's lore. Start small - a 3-5 session mini-campaign with a clear conflict and ending. If it works, expand it.

How do I handle writer's block when building a campaign?

Run the next session with minimal prep and let your players generate content for you. Ask them what their characters do on a day off. Ask them what rumors they've heard. Take notes. Half your best ideas will come from riffing on what players say at the table. Writer's block usually means you're trying to create in a vacuum.

Should I use a published setting or make my own?

Published settings (Forgotten Realms, Eberron, Wildemount) save you worldbuilding time but come with expectations. Players who know the lore might argue about canon. Your own setting gives you total control but requires more upfront work. A middle path: use a published setting's bones (pantheon, geography) but change the details. Nobody will sue you for having Waterdeep in a different location.

How much should I plan ahead?

Detail the next 2-3 sessions. Sketch the next story beat. Have a vague idea of the ending. That's it. Over-planning is the enemy of responsive DMing. The further ahead you plan, the more attached you get to specific outcomes, and the more likely you are to unconsciously railroad your players toward them.

The Verdict

Writing a D&D campaign isn't about creating a perfect story. It's about creating a situation interesting enough that your players want to engage with it, and being flexible enough to follow wherever they take it. Start with one conflict. Build five good NPCs. Prep in 30-minute chunks. And accept that the best moments at your table will be ones you never planned. For more on the world itself, see our worldbuilding guide. Want to help players write backstories that fit your campaign? And consider testing ideas with a one-shot first before committing to a full campaign.

If you want a space to test your ideas before game night, StoryRoll lets you run encounters with an AI that actually tracks your world state - useful for workshopping villain monologues and encounter balance without needing a test group.

AG

Written by Anthony Goodman

Founder of StoryRoll. Building AI-powered tabletop RPGs.

Share:Share on X

Related Posts