random-encounter
π―Skillfrom hopeoverture/worldbuilding-system
Generates random, contextually appropriate encounters tailored to location, party level, and world, spanning combat, social, and exploration scenarios.
Installation
npx skills add https://github.com/hopeoverture/worldbuilding-system --skill random-encounterSkill Details
Generate random encounters appropriate for a location, party level, or situation. Creates combat, social, or exploration encounters using existing world entities. Use when user wants "random encounter", "encounter table", or "what happens at [location]".
Overview
# 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
```markdown
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]
- [Complication 1]
- [Complication 2]
- [Complication 3]
- [Complication 4]
Aftermath
[What happens after combat - tracks to follow, clues found, etc.]
```
#### Social Encounter Format
```markdown
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
```markdown
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
- [Option A]: [What happens]
- [Option B]: [What happens]
- [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
```markdown
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 this repository10
Validates templates and entity files to ensure they meet worldbuilding system standards and structural requirements.
Generates a comprehensive, interconnected world with 80-120 entities, including geography, characters, organizations, and history, using 75 worldbuilding templates.
Generates intricate political landscapes with alliance networks, conflicts, treaties, and power dynamics for worldbuilding.
Generates a comprehensive worldbuilding project structure with customizable genre and tone options for creating immersive fantasy settings.
Generates a structured Obsidian worldbuilding template for a specific fantasy entity type with comprehensive sections, tags, and image prompt guidelines.
Connects entities bidirectionally by creating contextual wikilinks between them, either manually or automatically across a world.
Guides users through collaborative worldbuilding by asking targeted questions, offering choices, and creating world elements step-by-step with user approval.
Generates comprehensive D&D session preparation materials, quickly compiling world details, NPCs, locations, and encounter suggestions for Dungeon Masters.
Populates a geographic region with settlements, landmarks, encounters, legends, and adventure sites based on its terrain and characteristics.
Expands a settlement by generating detailed NPCs, establishments, districts, local issues, and atmospheric details for villages, towns, cities, or strongholds.