adventure_generate_layout
Generates procedural area layouts with terrain zones, paths, and transition points, returning validated data ready to apply to Neverwinter Nights modules.
Instructions
Generate a procedural area layout with terrain zones, crosser paths, and transition points. Returns data ready to pass to adventure_apply_layout. Encodes all layout rules: perimeter encapsulation, room separation, adjacency validation, walkable ratio. Styles: dungeon (varied rooms + corridors, some L-shapes), cave (smaller rooms, more corridors, maze-like), dwelling (quadrant rooms, fewer corridors, building interior), forest (clearings separated by trees, winding roads), rural (farmland/village, spine roads), city (urban cobblestone, grid roads), plains (open terrain, sparse clearings), desert (arid, cliff borders), castle (fortified exterior, castle walls), tundra (frozen, snow/camp clearings). Returns suggestedFeatures array with pre-validated feature placements.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tileset": "<tileset>",
"width": "<width>",
"height": "<height>",
"style": "<style>"
},
"name": "adventure_generate_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | Yes | JSON style object: {type: 'dungeon'|'cave'|'dwelling'|'forest'|'rural'|'city'|'plains'|'desert'|'castle'|'tundra', rooms?: number, clearings?: number, corridorStyle?: 'straight'|'zigzag', roadStyle?: 'spine'|'grid'|'winding', preferredFeatures?: string[]} — preferredFeatures is an array of tileset group names (from get_tileset_details) to prioritize when placing features. Preferred groups are tried first before falling back to random selection. | |
| width | Yes | Area width in tiles (8-32) | |
| height | Yes | Area height in tiles (8-32) | |
| tileset | Yes | Tileset resref (e.g., 'tdc01' for crypt, 'ttf01' for forest) | |
| transitionCount | No | Number of transition points to generate (default 1) | |
| transitionDirections | No | JSON array of directions: ['south', 'north', 'east', 'west'] |