random-encounter
Random Encounter Generator
Generate encounter: $ARGUMENTS
Overview
Creates contextually appropriate random encounters by:
- Using existing world entities (creatures, NPCs, locations)
- Matching encounter difficulty to party level
- Generating varied encounter types (combat, social, exploration)
- Optionally creating encounter tables for locations
Instructions
Step 1: Parse Arguments
Extract from $ARGUMENTS:
- Location: Where the encounter occurs (entity name, region, terrain type)
- Party Level: Average party level (1-20) - ask if not provided
- Encounter Type: combat, social, exploration, or random
- World: Which world to pull entities from
If location is a world entity, read it for context. If location is a terrain type (forest, road, city), use as context.
Step 2: Gather World Context
If a specific world is identifiable:
- Scan
Worlds/[World Name]/Creatures/for available monsters - Scan
Worlds/[World Name]/Characters/for NPCs - Read location entity for specific inhabitants/dangers mentioned
- Note regional factions, tensions, environmental hazards
Step 3: Determine Encounter Parameters
Difficulty by Party Level
| Party Level | Easy CR | Medium CR | Hard CR | Deadly CR |
|---|---|---|---|---|
| 1-4 | 1/4-1/2 | 1-2 | 3-4 | 5+ |
| 5-8 | 1-3 | 4-6 | 7-9 | 10+ |
| 9-12 | 4-6 | 7-10 | 11-13 | 14+ |
| 13-16 | 7-10 | 11-14 | 15-17 | 18+ |
| 17-20 | 10-14 | 15-18 | 19-21 | 22+ |
Encounter Types by Location
| Location Type | Combat % | Social % | Exploration % |
|---|---|---|---|
| City/Town | 20% | 60% | 20% |
| Road/Trade Route | 40% | 40% | 20% |
| Wilderness | 60% | 15% | 25% |
| Dungeon | 70% | 10% | 20% |
| Frontier | 50% | 25% | 25% |
Step 4: Generate Encounter
Combat Encounter Format
## Combat Encounter: [Evocative Name]
**Location:** [Specific setting within area]
**Difficulty:** [Easy/Medium/Hard/Deadly] for level [X] party
### Setup
[2-3 sentences describing the scene as players encounter it]
### Enemies
| Creature | Count | CR | Notes |
|----------|-------|----|----- |
| [[Creature 1]] | X | Y | Tactics/role |
| [[Creature 2]] | X | Y | Tactics/role |
**Total XP:** [calculated]
### Tactics
[How enemies behave - aggression, retreat conditions, special actions]
### Environment
- **Terrain:** [features that affect combat]
- **Hazards:** [environmental dangers]
- **Cover:** [defensive positions]
### Treasure
[Appropriate loot based on CR and creature type]
### Complications (Optional)
[d4 table of things that could make this more interesting]
1. [Complication 1]
2. [Complication 2]
3. [Complication 3]
4. [Complication 4]
### Aftermath
[What happens after combat - tracks to follow, clues found, etc.]
Social Encounter Format
## Social Encounter: [Evocative Name]
**Location:** [Where this occurs]
**Primary NPC:** [[NPC Name]] or [Generated NPC]
### Setup
[2-3 sentences describing the situation]
### The NPC
- **Appearance:** [Brief description]
- **Demeanor:** [How they come across]
- **Want:** [What they're trying to achieve]
- **Secret:** [What they're hiding]
### The Situation
[What's happening, what the NPC needs or offers]
### Conversation Hooks
- [Opening line or action]
- [Topic they'll bring up]
- [Question they might ask]
### Possible Outcomes
| Approach | DC | Result |
|----------|----|----- |
| Persuasion | [X] | [Outcome] |
| Intimidation | [X] | [Outcome] |
| Deception | [X] | [Outcome] |
| Insight | [X] | [What they learn] |
### Complications
[What could go wrong or make this interesting]
### Connections
[How this ties to larger world events/entities]
Exploration Encounter Format
## Exploration Encounter: [Evocative Name]
**Location:** [Specific area]
**Type:** [Discovery/Hazard/Mystery/Resource]
### Discovery
[What the party finds - describe for players]
### Investigation
| Check | DC | Reveals |
|-------|----|----- |
| Perception | [X] | [Detail] |
| Investigation | [X] | [Detail] |
| History/Arcana/Nature | [X] | [Context] |
| Survival | [X] | [Practical info] |
### Interaction Options
1. **[Option A]:** [What happens]
2. **[Option B]:** [What happens]
3. **[Option C]:** [What happens]
### Hidden Elements
[Things not immediately obvious]
### Treasure/Rewards
[What can be gained]
### Connections
[Links to world lore, plot hooks]
Step 5: Use World Entities
When possible, incorporate existing entities:
- Creatures: Use monsters from
Creatures/folder - NPCs: Reference characters from
Characters/folder - Organizations: Tie to factions from
Organizations/ - Locations: Reference specific places from
Geography/orSettlements/ - Items: Include items from
Items/as treasure - History: Connect to events from
History/
Add [[wikilinks]] to all referenced entities.
Step 6: Offer Encounter Table
After generating one encounter, offer:
"Would you like me to create a full d6 or d12 encounter table for this location?"
Encounter Table Format
## Encounter Table: [Location Name]
**Terrain:** [Type]
**Recommended Level:** [Range]
**Check Frequency:** [How often to roll]
### d12 Encounters
| Roll | Type | Encounter | Difficulty |
|------|------|-----------|------------|
| 1 | Combat | [Brief description] | Deadly |
| 2 | Combat | [Brief description] | Hard |
| 3-4 | Combat | [Brief description] | Medium |
| 5 | Social | [Brief description] | - |
| 6 | Social | [Brief description] | - |
| 7 | Exploration | [Brief description] | - |
| 8 | Exploration | [Brief description] | - |
| 9 | Environmental | [Brief description] | Varies |
| 10 | Plot Hook | [Brief description] | - |
| 11 | Resource | [Brief description] | - |
| 12 | Special | [Unique event] | Varies |
### Encounter Details
[Expanded details for each entry]
Step 7: Offer to Save
"Would you like me to save this encounter to the world?"
If yes:
- Determine appropriate template (Combat, Social, Exploration, Trap)
- Read template from
Templates/Encounters/ - Fill template with generated content
- Save to
Worlds/[World Name]/Encounters/[Encounter Name].md - Update location entity's Connections if applicable
Examples
# Generate for specific location
/random-encounter "The Blackwood Forest" level 5
# Combat encounter on a road
/random-encounter road combat level 3
# Social encounter in city
/random-encounter "Ironhold City" social level 8
# Let system choose type
/random-encounter wilderness level 6 random
# Create encounter table
/random-encounter "Shadowfell Border" table level 10
Integration Notes
- Reference Connection Matrix for encounter-to-location linking
- Use CR and XP tables from D&D 5e 2024 Rules
- Match creature behavior to stat blocks if using world creatures
- Consider party composition if mentioned in conversation
More from hopeoverture/worldbuilding-system
create-world
Create a new worldbuilding project with full folder structure. Use when the user wants to start a new world, campaign setting, or fantasy setting like "create a world called Eldoria".
3generate-world
Generate an entire world with interconnected entities. Creates 80-120 entities including continents, regions, settlements, NPCs, organizations, history, and more. Use when the user wants a complete world generated automatically.
3validate-template
Validate a template or entity file has all required sections, YAML fields, and follows the worldbuilding system conventions. Use when creating new templates or checking if entities are properly structured.
3create-template
Create a new worldbuilding template for the Obsidian vault. Use when the user wants to add a new entity type template like "tavern template", "spell template", or "dungeon template".
2populate-entity
Scan an entity file to identify mentions of people, places, organizations, and other entities in the text. Creates missing entities using appropriate templates and adds wikilinks. Use when user wants to "populate", "fill out", "create linked entities", or "auto-generate connections" for an entity.
2worldbuild
Interactive guided worldbuilding with questions, choices, and incremental creation. Creates worlds collaboratively through a question-and-answer workflow rather than automatic generation. Use when the user wants to thoughtfully build a world step-by-step.
2