Adventure Runner
unlistedby Muhammed Enes Alpler
Run a tabletop adventure step by step: read-aloud cards in the book's order, a flow chart of the players' decisions, encounters with Atlas VTT tokens and initiative, stat sheets, XP and a session log.
Adventure Runner
A step-by-step game-master companion for tabletop adventures in Obsidian. It walks you through an adventure in the book's order: read-aloud text, checks, fights, the players' decisions and what they unlock, XP and a session log. It is written for D&D 5e but reads its content from your own notes.
- Step cards: what to read, what to roll, what happens next, one card at a time.
- Flow chart of the adventure that follows the players' decisions.
- Encounters: monster roster, initiative, HP, stat sheets, XP split. With the Atlas VTT plugin it opens the map, places monster and character tokens and runs the fog of war.
- Party from Atlas: pick the player characters from Atlas's Characters tab; picture, class, AC, HP and passive Perception come from their linked statblock notes. A character's medallion opens its sheet.
- Stat sheets for monsters and characters: every check, save, skill and attack is a button that rolls.
- Spells: a caster's spell list becomes buttons with the spell's text on hover. Casting spends a slot (with a choice of slot level for upcasting) or a daily use and rolls what the spell does: spell attacks (one per beam for eldritch blast), damage scaled by slot or caster level, the save DC and "half on a success", healing. The 319 spells of the SRD 5.1 are built in (and the 339 of the SRD 5.2 for a character on the 2024 rules, see Rules below); for a spell outside them you enter its dice once.
- Spells from your own books (optional, desktop): the command Import spells from Aurora reads the books you
own in Aurora Builder once (you choose its content folder) and saves the 2014 spells
that are not in the SRD to
imported-spells.jsonin this plugin's folder in your vault, so they work on every device the vault syncs to. Only Wizards of the Coast's 2014 books by default (third-party books on request; never the 2024 books or Unearthed Arcana). What a spell rolls is read from its text: check its first roll, โ corrects it. None of this content ships with the plugin. - Rests (2014 rules): a short rest spends Hit Dice one at a time (die + Constitution modifier) and brings back Pact Magic slots and "1/Short Rest" features; a long rest restores HP, half the Hit Dice (at least one), every spell slot, daily spell and feature. Features with uses per rest show as pips on the sheet. No resting in a fight.
- Table rules in a fight (2014): pick a target (๐ฏ) and an attack rolls against its AC, with advantage or disadvantage from both sides' conditions (they cancel); a hit's damage waits to be applied. Damage has a type: resistance halves it, vulnerability doubles it, immunity stops it (nonmagical bludgeoning, piercing and slashing too). Temporary hit points take damage first and do not add up. At 0 HP a character makes death saving throws (a 20 is back up, a 1 is two failures, damage at 0 is a failure, two on a critical hit; damage left over that reaches the maximum is death); a monster just drops. Concentration: casting a concentration spell starts it and ends the one before, damage asks for a Constitution save (DC 10 or half the damage), 0 HP ends it. Conditions (from Atlas's tokens, or set in the โฏ window), exhaustion (1โ6), surprise, inspiration, one reaction per round, legendary actions, recharge abilities (rolled at the start of the creature's turn) and the lair action at initiative 20. A spell that gives its caster temporary hit points (false life) gives them.
- Familiars and companions: a familiar, a beast companion or a steed joins its character's fights with its own
initiative, HP and attacks, keeps its HP between fights and takes no share of the XP. Give it a note of its own
with its
statblockand list that note in the character note's frontmatter (companions: ["[[Sphinx of Wonder]]"]): its Atlas token then links to its own note and Atlas shows its stats. A secondstatblockin the character's note still works, but its token links to no note (Atlas shows a linked note's first statblock, the character's). - Session log: a normal note in your vault, with a recap for the next session.
Works offline. No account, no network access, no AI.
Rules: D&D 5e 2014 (SRD 5.1). Spells, monsters, CR and XP follow the 2014 rules. The 2024 rules (SRD 5.2)
change spells, monster stat blocks and the XP tables as well, so they are not mixed in. One exception, per
character: a player who built a character on the 2024 rules writes rules: 2024 in that character's statblock,
and its spells are cast as the SRD 5.2 writes them (2024 False Life is 2d4 + 4; a spell the SRD 5.2 does not have
keeps its 2014 version). A feature that casts a spell and "gets the maximum" (2024 Fiendish Vigor) gives the
maximum without a roll. Everything else at the table (the adventure, its monsters, conditions, exhaustion) stays 2014.
Where the adventure lives
In the notes. Each part is a small YAML block inside the note it belongs to, so the book and its flow stay together and travel together:
| Block | In which note | What it holds |
|---|---|---|
adventure | the adventure's main note | title, first step, chapters, levels, end card |
adventure-step | a chapter part / location | choices (where the party can go), fight, DM note |
adventure-room | a numbered room note | creatures, exits, treasure, map position |
adventure-outcome | under the heading that describes it | what can happen, the flags it sets, XP |
adventure-decision | where the book asks it | a question and its answers |
Create an adventure from the vault notes writes the first draft (a step for every chapter part, a room
for every numbered room note). After that you change the adventure by editing its blocks in the notes, like
any other text (switch the note to source mode; in reading view each block shows as a one-line card). The
command Show problems lists choices and exits that point nowhere, flags nothing sets, and keys a block does
not have. Every note is backed up to the plugin folder before the plugin rewrites it. An older adventure.json still works; Move adventure.json into
the notes converts it.
Adventure Runner is an independent fan tool, not affiliated with or endorsed by Wizards of the Coast.
Requirements
- Obsidian 1.5 or newer, desktop.
- Optional, from Obsidian's community plugins: Atlas VTT (maps, tokens, initiative on the map; tested with 0.4.x) and Fantasy Statblocks (stat blocks in notes).
Install
Until the plugin is listed in Obsidian's community plugins:
- Install BRAT from Settings โ Community plugins โ Browse.
- BRAT โ Add beta plugin โ paste this repository's URL.
- Enable Adventure Runner in Settings โ Community plugins.
Manual install: download main.js, manifest.json and styles.css from the latest
release into <your vault>/.obsidian/plugins/adventure-runner/ and enable the plugin.
Try it
Open examples/sample-vault as a vault (Open another vault โ Open folder as vault),
enable Adventure Runner and click the compass icon in the left ribbon. The sample is a short original adventure.
Your own adventure
The adventure lives in your notes as the blocks described above. You do not write them from scratch:
-
Put the adventure into notes with this layout:
The Lantern Hollow.md the main note, at the top of the vault: the title (tag it `adventure` when the vault has other top-level notes) 01 Chapter One/ 01 Chapter One.md chapter note, named like the folder (with or without the number): links its steps in order Goblin Ambush.md a step Cave/ a dungeon: one note per room, code + number + name C01 Entrance.md C02 Kennel.md C02a Back Pen.md a letter after the number is a room of its own ("2a", after 2) 02 The Village/ 02 The Village.md Village/ a town: one note per place, no room codes Village.md optional: the town itself (its arrival read-aloud); named like the folder Inn.md Monsters/ stat block notes; Monsters/Tokens/ holds the token pictures NPCs/ named characters Maps/ map images, named like the step or folder they belong to: Cave.webp, and Cave (Player).webp for the players' copyRead-aloud text goes in a callout; creatures are bold links with a count, e.g.
four **[[Goblin|goblins]]**. In a room note they are the room's creatures; in a step note (an ambush on the road) they are the step's fight. The count is read from the three words before the link (twenty uninjured **[[Orc|orcs]]**is 20), and an NPC's description in brackets,**[[Xolkin]]** (LE male half-elf **[[Bandit Captain|bandit captain]]**), is that NPC, not a second fighter. Create takes every bold creature, also one the text only mentions (a giant that has already left, the villain named in passing): check each draft fight against the book. A creature's note holds its stat block in the Fantasy Statblocks format (a```statblockblock); the sample'sMonsters/notes are examples. A creature that Fantasy Statblocks already knows (its bestiary has the SRD monsters unless you turned them off, plus any you imported) needs no note: a bold link to it, even to a note that does not exist, is in the fight with the bestiary's stats. Bold links to creatures nobody has stats for are listed in the draft'stodo. A named enemy (a bandit captain called Vell) is a note inNPCs/with a stat block of its own, or a linemonster: Bandit Captainthat names the creature it is built on (a note inMonsters/or a creature Fantasy Statblocks knows, spelt as its bestiary lists it, e.g.Half-Ogre (Ogrillon)); a bold link to that note in a room, e.g.**[[Vell Marrow]]** and two **[[Bandit|bandits]]**, puts it in the room's fight. An NPC whose stat block is good-aligned or CR 0 (a captive, a rescued knight), or one the sentence calls restrained, captured, unconscious or a prisoner, is listed in the room but does not fight. In a town's places, the bold NPC links are the people met there and never fight (a plain link is only a mention; add a fight there by hand when the book has one). In a step note, the bold NPCs who do not fight (the defenders beside the party) are listed on the step's People here card (npcs:in its block). A second folder of places (a city adventure with several districts) is a town of its own: its step getsplaces: trueand plays like the town (places, not rooms). A note namedRules Referenceanywhere in the vault becomes the target of "see โฆ in the rulebook" links. -
Run the command Adventure Runner: Create an adventure from the vault notes. It writes a first draft into the notes (steps, rooms, read-aloud, monsters and their counts, maps). A vault that already has an adventure is left alone (see Starting over).
-
Play with the draft right away. The
todolist in the main note'sadventureblock names what only a human can add: the players' decisions and their outcomes, who points the party where, and the ending. The command Show problems lists what still points nowhere, and any key a block does not have (a typo is named with the key it most likely meant); while the adventure is still markeddraft: trueit also lists the draft'stodoitems one by one.
Finishing the draft
The book's events become blocks you add under the heading that describes them (switch the note to source mode and type the block; docs/blocks.md has every key). The sample vault has each of these:
| The book says | Write | In the sample |
|---|---|---|
| something can happen here (the boss is spared, the reward is paid) | an adventure-outcome with an id: the DM ticks it on the step's What happened? card, which sets the flag of that id | LH04 Goblin Den.md |
| a way is open only after something happened | needs: <flag> on that choice in the adventure-step block | Brackenford.md (the drain) |
| "when they have visited X, they can go on" | an outcome with req: {room: "<id of X>"} (it unlocks once X is done; the DM ticks it on X's What happened here? card or the step's), and needs: its id on the choice | Lantern Hollow.md |
| the players decide (take the deal or fight) | one outcome per answer, then an adventure-decision whose branches each have if: [<that outcome's id>]; the panel shows the question under the step's choices and, when the block is in a room's note (or has room:), on that room's cards after its fight; it marks the answer the DM ticked | LH04 Goblin Den.md |
| XP for the story | xp: {each: 100} on the outcome | LH04 Goblin Den.md |
| the characters level up at a milestone ("they reach 2nd level") | level: 2 on the outcome: ticking it raises the party to that level (XP still counts on its own; the higher of the two wins) | |
| the party goes to one of several places (one of three towns) | Create chains steps in folder order; give the step before them one choice to each place, and each place's last step a choice onward to where they meet again | |
| a town or district that is not the adventure's town | places: true on its adventure-step (Create does this for every folder of places) | |
| the ending | summary: true on the last step, and endCard: (fates, gold, open quests) in the main adventure block | Conclusion.md, The Lantern Hollow.md |
Instead of typing, most blocks can be changed with the โ buttons on the panel's cards.
In a fight, a monster that runs away or surrenders is marked with ๐ on its row: it leaves the turn order and End fight pays its XP like that of a fallen one (the 2014 rules give XP for defeating a monster, not only for killing it). A fight the party talks its way out of (a deal accepted) is ๐ Solved without a fight; the What happened? card then opens for the DM to tick the answer.
When nothing is left, delete the draft: true and todo: lines.
Maps, tokens and Atlas
Without a map image a dungeon still runs: the dungeon card has an Enter button for the next room, and each room's last card lists its exits to walk on; fight tokens go to the middle of whatever map is open in Atlas. With Atlas VTT:
- Map. Put the image in
Maps/, named like the step's note or folder (Maps/Cave.webp, andMaps/Cave (Player).webpfor a players' copy without secret doors). The draft links it to that step. The panel's small dungeon map shows the players' copy when there is one; Atlas shows the map its scene was made from. - Scene. In Atlas: Asset Manager โ Maps โ + โ Add Map and pick the image; then Scenes, double-click
the map's card and Create scene, named like the map (
Cave). The guide finds the scene by its name in any collection, also when it is made after the draft. The step's card then opens it. - Room positions. In that scene, pick Atlas's Note Pin tool, click on a room and choose the room's note
(Pin to entire note). The guide reads where each room's pin is: its marker, the camera and the fight's tokens
go there. Pins to a heading of the note (a treasure, a trap) are left alone. A room without a pin keeps the
posof its block; until it has one (the draft writes none), the panel's map shows the whole picture with that room in a row along its bottom edge. A pin shows on the panel's map once Atlas has saved the scene. - Tokens. Put a picture per creature into
Monsters/Tokens/, named like the creature (Goblin.webp; webp, png, jpg, gif or svg). A named NPC without a picture of its own wears the picture of the creature it is built on (monster: Bandit Captain), else_Enemy.webpif there is one. Start fight places the tokens hidden; Show reveals them. - Atlas library (optional): with any map open in Atlas, the command Fill the Atlas library adds the tokens, the maps and the book's fights as encounters to Atlas's asset library, and names the creatures it found no picture for.
Starting over
Create an adventure from the vault notes only writes into a vault without an adventure; it names the notes
that still hold blocks. To start again from the book: delete the ```adventure blocks from those notes
(every rewrite left a copy in the plugin's backups folder, see Your data), then run the command again.
Commands
| Command | What it does |
|---|---|
| Open panel | the guide (also the compass icon in the left ribbon) |
| Create an adventure from the vault notes | the first draft, see above |
| Show problems | blocks that could not be read, then everything that points nowhere |
| Open session log | the log note of this session |
| Rebuild the flow canvas | redraws Adventure Flow.canvas from the adventure (a canvas you drew by hand is kept as a copy) |
| Fill the Atlas library (tokens, maps, encounters) | see Maps, tokens and Atlas |
| Place the characters on the open Atlas map | the party's tokens onto the map that is open |
| Import spells from Aurora | see Spells from your own books above |
| Move adventure.json into the notes | converts an older adventure.json into blocks |
Every block and key, with an example of each block: docs/blocks.md (generated from the plugin's block schema, so it always matches it).
Copyright: do not share an adventure.json or notes made from a published book you do not own the rights to.
Scripting API (scripts and AI assistants)
Everything the panel's buttons do can also be called from a script, for example by an AI assistant that runs the
game for you through Obsidian's developer console. Each call does exactly what the button does, then answers with
{ ok, error, said, log, state }: error is why the panel refused (a fight still open, a locked choice, a name
it does not know, with the names there are), said the panel's notices, log the session-log lines it wrote,
state the game as plain data (step, room, cards, the current card's text, the encounter, rooms, "What happened?"
rows, choices, and a running fight's combatants with HP, AC, initiative and attacks).
const g = app.plugins.plugins['adventure-runner'].api;
await g.state(); // the game as data (no change)
await g.start(4); // โถ Start, 4 players
await g.next(); await g.back(); // the next / previous card
await g.card('enc'); // jump to a card by number or kind
await g.choose('Lantern Hollow'); // a choice, by its words or the step it leads to
await g.room('Goblin Den'); // into a room or town place (by id, number or name)
await g.roomDone(); await g.leave(); // โ Room done ยท Leave the dungeon / town
await g.fight(); // โ Start fight (this room's or this step's)
await g.initiative({ Mira: 17 }); // the characters' totals (the rest are rolled)
await g.attack('Goblin 2', 'Scimitar', 'Mira'); await g.applyHit();
await g.damage('Goblin 1', 7, 'fire'); await g.heal('Mira', 4);
await g.down('Goblin 3'); await g.fled('Wolf'); await g.nextTurn();
await g.endFight(); // or g.cancelFight(), g.noFight(), g.lost()
await g.tick('Wenna Hale rescued'); // a "What happened?" row (tick(โฆ, false) undoes it)
Names are matched whole first, then by a unique part ('Goblin 2', 'wolf'). Calls run one after another.
Look and theming
Settings โ Panel look:
- Game (the default): soot and gold leaf, metal badges, gilded icons and a red Next button, in any theme, dark or light. Titles use your theme's heading font.
- Obsidian: the panel takes its colours, fonts, text sizes and icon sizes from Obsidian, so it looks like the rest of the app in whatever theme you use.
Text sizes and icon sizes always follow Obsidian. A theme or a CSS snippet can change any part of either look
through the --dmr-* variables; see docs/theming.md.
Your data
Progress (current step, flags, party, fights) is stored in the plugin's data.json. The adventure blocks
and the session log are normal notes in your vault. Before a note is rewritten, its old text is copied to
<vault>/.obsidian/plugins/adventure-runner/backups/ (the last 30 saves are kept); if that copy fails,
nothing is written and the reason is kept in last-error.log in the same folder. The plugin does not send
anything anywhere.
Development
npm ci
npm run lint # Obsidian's review rules on src/, then an undefined-name check on the built main.js
npm test # builds dist/ and runs the tests on the sample adventure
Sources are plain JavaScript in src/, concatenated into one main.js by scripts/build.mjs (no bundler).
Release: bump with npm version <x.y.z>, push the tag; the release workflow publishes the files.
License
MIT. This work includes material taken from the System Reference Document 5.1 ("SRD 5.1") by Wizards of the
Coast LLC, available at https://dnd.wizards.com/resources/systems-reference-document and licensed under
CC-BY-4.0: the sample adventure's monsters and the
spells (src/srd-spells.json). It also includes material from the System Reference Document 5.2 ("SRD 5.2") by
Wizards of the Coast LLC, available at https://www.dndbeyond.com/srd. The SRD 5.2 is licensed under the
Creative Commons Attribution 4.0 International License:
the 2024 spells (src/srd-spells-2024.json). Both spell files are generated by scripts/srd-spells.mjs from a pinned commit of
5e-bits/5e-database (MIT, Copyright (c) 2018-2020 Adrian Padua,
Christopher Ward); regenerate them with node scripts/srd-spells.mjs, never edit them by hand.
The panel's icons are from game-icons.net by Lorc, Delapouite, Skoll, Carl Olsen and
Guard13007, licensed under CC BY 3.0; see
src/assets/game-icons/CREDITS.md.
Adventure Runner is unofficial and not affiliated with Wizards of the Coast.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.