{randomDungeon}
Substitutes a random dungeon's name into your prose - flavor text
only, same as {nearestDungeon},
it doesn't open anything. Unlike {nearestDungeon}, this
picks randomly rather than always resolving to the same one.
dungeons[] array and reference it with
{dungeon:your-dungeon-id} instead - see
Campaign Structure.
Like {nearestDungeon}, this comes from an optional,
hand-authored data/maps/locations.json file - Campaign
Cookbook doesn't generate dungeon flavor-text entries the way it does
towns. If that file doesn't exist, or nothing matches your filters,
this resolves to generic text instead of a literal {randomDungeon}.
Basic Usage
Example
Result: "Rumors speak of treasure in The Shadowed Halls." (random dungeon)
Parameters
-
type
string
Filter by dungeon type{randomDungeon:type=Cave}
Valid Types: Cave, Underground-Ruins, Sewer, Ancient-Crypt, Monster-Lair, Ruin
-
difficulty
string
Filter by difficulty level{randomDungeon:difficulty=hard}
Valid Difficulties: easy, medium, hard, deadly
-
sameState
boolean
Intended to limit selection to dungeons in the same state/province as the starting location. Not currently functional - the hand-authored
locations.jsonformat has no state data for the resolver to filter by (same gap noted on {randomBurg}), so this parameter is silently ignored.{randomDungeon:sameState=true}
Combined Parameters
Hard Cave
Finds a hard-difficulty cave.
Random Easy Crypt
Finds an easy ancient crypt from your locations.json.
Difference from {nearestDungeon}
| Feature | {nearestDungeon} | {randomDungeon} |
|---|---|---|
| Selection | Closest by distance | Random selection |
| Variety | Predictable location | Different each time |
| Use Case | Main quest dungeon | Side quests, rumors |
Complete Example
Best Practices
Use for Side Content
✗ Bad: Main quest critical path
Match Difficulty to Party Level
{randomDungeon:difficulty=deadly} // For experienced parties
See Also
- {nearestDungeon} - Closest dungeon (recommended for main quests)
- {dungeon:id} - A real, playable dungeon instead of just a name
- Parameter Syntax - Complete parameter reference