Map and Campaign Editors¶
Wayward Crown includes built-in map and campaign editors that let you create custom levels and scenarios.
Map Editor¶
Access the map editor from the main menu to manually design maps.
Features¶
- Terrain Painting — Select a terrain type and paint it onto the map with a brush
- Entity Placement — Place adventurers, enemies, buildings, and treasure chests
- Outpost Placement — Place enemy outposts
- Triggers — Set up script trigger conditions
- Save/Load — Save maps to the
maps/directory
Terrain Types¶
- Grassland, Forest, Mountain, Water, Swamp, Desert, Town, Road
Save Format¶
Maps are stored in JSON format in the maps/ directory and include:
- Terrain data (serialized NumPy int8 array)
- Height data
- Entity positions and properties
- Castle position
Campaign Editor¶
The campaign editor lets you combine multiple maps into a multi-level campaign with a storyline.
Features¶
- Level Ordering — Drag and drop to reorder levels
- Victory Conditions — Set victory conditions for each level
- Story Text — Set intro and completion text
- Starting Resources — Set the initial gold for each level
- Building Restrictions — Restrict which building types the player can use
Victory Condition Options¶
| Type | Description |
|---|---|
free |
Free mode, no victory condition |
destroy_enemy_buildings |
Destroy all enemy outposts |
survive_ticks |
Survive for a specified duration |
reach_gold |
Accumulate a specified amount of gold |
destroy_building |
Destroy a specific type of outpost |
defend |
Defend the Castle for a specified duration |
collect_chests |
Collect all treasure chests |
Save Structure¶
campaigns/my_campaign/
├── campaign.json # Campaign metadata
├── level1.json # Level 1 map
├── level2.json # Level 2 map
└── level3.json # Level 3 map
Sharing Custom Content¶
- Map and campaign folders can be shared by simply copying them
- Place received maps into
maps/to load them from the main menu - Place received campaigns into
campaigns/to see them in the main menu