create_map
Create a new map with a default size based on purpose (interior, town, dungeon, etc.) or explicit width/height. Returns new map ID and size advisory for painting and previewing.
Instructions
Create a new map. SIZE IS THE FIRST DESIGN DECISION: a map is N screens of 20x15 tiles, so pass a purpose (interior/room/town/dungeon/overworld/region) to get a sensible default size, or set width/height explicitly. Returns the new map id and a size_advisory (screens, target focal-point count, scatter density, oversize warnings) plus the design guide. Writes the next-free MapXXX.rxdata (blank Table[w,h,3]) + MapInfos entry. Paint with apply_autotile / scatter_tiles / set_map_tiles, preview with render_map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name in the map tree | |
| width | No | Width in tiles. Omit to use the purpose default. Clamped to 20..500. | |
| height | No | Height in tiles. Omit to use the purpose default. Clamped to 15..500. | |
| purpose | No | What the map is for. Picks a default size if width/height are omitted, and tunes the size advisory. interior=20x15 one screen; town~40x35; dungeon~45x40; overworld~100x90 (segment). | |
| parentId | No | Parent map id in the tree (default 0 = root) | |
| tilesetId | No | Tileset id (default 1) |