Units & Companions
Units are the characters in the world — your colonists, enemies, and neutral NPCs. In Overseer Mode, you select and command units to build, demolish, and explore.
Factions
Section titled “Factions”Each unit belongs to a faction:
| Faction | Behavior |
|---|---|
| Colony | Selectable, commandable, possessable by the player |
| Enemy | Hostile — attacks on sight |
| Neutral | Non-hostile — future trading |
Unit Commands
Section titled “Unit Commands”Units execute commands from a queue. Available commands:
| Command | Description |
|---|---|
| MoveTo | Pathfind to a target tile |
| Build | Place a block at a tile using an item |
| Demolish | Remove a block at a tile |
| Pickup | Pick up an entity (dropped item) |
Commands are queued sequentially. Hold Shift + right-click in Overseer Mode to append to the queue instead of replacing it.
Pathfinding
Section titled “Pathfinding”Units use A* pathfinding to navigate to their target. The pathfinder respects:
- Block movement rules (
blocks_movementproperty) - Surface transitions (step up/down, walk, fall)
- Z-level navigation via stairs
Multi-Waypoint Plans
Section titled “Multi-Waypoint Plans”Using kinswardctl, you can assign multi-waypoint routes:
kinswardctl unit-plan <entity_id> 5,0,1 5,5,1 0,5,1Task System
Section titled “Task System”The global TaskQueue holds pending tasks. When a unit becomes idle, it automatically picks the nearest pending task from the queue and pathfinds to execute it.
Task types: Build, Demolish, Pickup.
Tasks can be created by:
- Right-clicking in Overseer Mode
- Zone operations (bulk build/demolish)
- kinswardctl commands (
task-add,zone-build,zone-demolish)
Companions
Section titled “Companions”Companions are Colony units that follow behavioral patterns:
| Behavior | Description |
|---|---|
| Follow | Follow a specific entity (typically the player) |
| Station | Stay in place |
Managing Companions
Section titled “Managing Companions”Use kinswardctl companion commands or the in-game companion system:
# List all companionskinswardctl companion-list
# Set a companion to followkinswardctl companion-behavior <entity_id> follow
# Call all companions to followkinswardctl companion-call-all
# Dismiss all (station in place)kinswardctl companion-dismiss-allSpawning Units
Section titled “Spawning Units”In debug mode, new units can be spawned via kinswardctl:
# Spawn a dwarf at position (10, 5, 1)kinswardctl spawn dwarf 10 5 1 --name "Urist" --faction colony --controlled
# Possess a unit (take direct control)kinswardctl possess <entity_id>
# Release possessionkinswardctl possessPossession
Section titled “Possession”You can possess a Colony unit to take direct control in Adventure Mode. While possessing a unit, WASD moves that unit instead of the default player character.