Make an adventure
An adventure is a world that someone else’s master can run: places, people, quests and pictures, written as a campaign writes them, with an adventure.yaml that says what it is. You write it in a campaign of your own, export it as a .zip, and share it.
You need Node 24 and RPG Engine (npm install -g rpg-engine), and an AI app that plays RPG Engine, or a text editor: an adventure is a folder of markdown pages.
Steps
-
Make a campaign to write it in, with the game system and the language the adventure is for:
rpg init "The Drowned Mill" --system free --language en cd "The Drowned Mill"Its name becomes the adventure’s title. Set a premise, one or two sentences: its first sentence becomes the adventure’s description.
rpg config premise "A flooded mill hides what happened to its miller." -
Write the world, before anyone plays it. Ask your master to build it with you, or write the pages yourself with
rpg write, or by hand inworld/<folder>/<Name>.md(characters,places,factions,quests,items,events,topics,creatures). Pictures go inimages/, house rules inrules/.rpg write "The Drowned Mill" --type place --text "A mill half under the river, its wheel still turning." rpg write "Find the Miller" --type quest --text "The miller vanished the night the river rose."Secrets go in
> [!secret]blocks: the master reads them, the player does not. -
Write an opening page: a page tagged
opening, with the situation, the hooks, what happens if no one steps in and the pages to read first; itsstartfield is the place where the adventure starts.rpg write "The River Rises" --type topic --add tags=opening --set "start=[[The Drowned Mill]]" --text "Rain for nine days. Hooks: ... Read first: [[The Drowned Mill]], [[Find the Miller]]." -
Export it, with your name and the licence you give it:
rpg package export --author "Jane Doe" --license "CC BY 4.0"You should see:
Wrote ...\exports\The Drowned Mill.adventure.zip: 3 pages, from the world as it is, before play. Its opening is [[The River Rises]]. The player shares it as a file, and only what they have the right to share.The export takes
world/,images/andrules/as they were at the start: the save of session zero if there is one, else the world as it is, if the campaign has not been played. It leaves out the player characters and any adventure the campaign installed. Without--license, all rights are reserved. -
Fill in
adventure.yaml. Unzip the export into a folder outside the campaign, such asthe-drowned-millbeside it;adventure.yamlis at its top. Add what the export cannot know:title: The Drowned Mill # at most 12 words about: A flooded mill hides what happened to its miller. # at most 40 words, never a secret language: en version: 1.0.0 author: Jane Doe license: CC BY 4.0 # leave it out: all rights reserved attribution: ... # the credits you give, if any needs: {system: 5e, extensions: {weather: 0.5.0}} # the export sets these: the system, if its pages use it, and the campaign's extensions at their lowest versions levels: 1-3 # only if the system has levels content: [drowning, grief] # its strong themes, for the player's lines and veils length: 2 sessions party: 1 to 4 characters start: "[[The Drowned Mill]]" opening: "[[The River Rises]]"Any other key refuses the whole adventure. Other files at the top (README, LICENSE) are allowed and ignored.
-
Test it in a new campaign that plays the same system:
cd .. rpg init test-table --system free --language en cd test-table rpg package install ../the-drowned-millIt takes a folder, a
.zipor a link. You should see:Installed the adventure The Drowned Mill 1.0.0 by Jane Doe (CC BY 4.0): A flooded mill hides what happened to its miller. 1 places, 1 quests, 1 topics. Show [[The River Rises]] and the pages it says to read first before you narrate. ...rpg package listthen saysIts adventures: The Drowned Mill 1.0.0. -
Publish it on GitHub. Put the folder’s contents at the top of a public repository (
adventure.yamlat the root of the default branch, withworld/,images/,rules/beside it) and give the repository the topicrpg-engine-adventure(on GitHub: the gear beside About, then Topics). Or share the.zipas a file.
The dashboard’s Packages page lists the repositories with the topic rpg-engine-adventure, with the title, author, levels, length and language from their adventure.yaml.
What the player sees
The player adds it on the Packages page, by its link, a folder or a file, or asks the master for it. The master installs it when it brings the adventure’s hook into the story: it reads the opening page and the pages it names, places the starting place in the world, and the adventure begins when the player takes the hook. Its pages are the campaign’s from then on. An adventure is data, so no permission window is shown.
Update it
Raise version in adventure.yaml and publish again. A campaign that already has the adventure is never updated: the master’s story may have changed its pages. Before the story touches it, the player can take it out with rpg package remove "The Drowned Mill" and install the new version.
When something fails
The campaign has been played, and has no save of its start: export from a campaign before play, or one that has a save of session zero.The Drowned Mill is for the game system 5e, and the campaign plays free: install it in a campaign of the system inneeds.system.The Drowned Mill needs the extension weather: install it with package install weather first.: install the extensions inneeds.extensions.... says the levels it is for, and the game system free has no levels: takelevelsout.The campaign has The Drowned Mill 1.0.0: a played adventure is not updated.: see “Update it”.The Drowned Mill cannot be installed: ...: some of its page names are already in the campaign. Rename the adventure’s pages, or the campaign’s.... has no adventure.yaml at its top: it is not an adventure.:adventure.yamlmust be at the top of the folder, or of the.zip(or inside the one folder a.zipholds, as GitHub zips a repository).- If the export says its pages come from the player’s own documents (
source:), it sets the licence to “personal use only”. Share it only if you have the rights to that text.
Reference
- The
packagecommand,exportincluded: commands.md, package;write: commands.md, write. - How packages of data are installed: extensions.md, Installing.
- Pages, fields and sections: game-systems.md, Pages, rules, words and instructions.