query · world.settlement

Loaded settlements

Returns a bounded stable-ID page of loaded Settlement capability facts.

world.settlement.list(filters?, cursor?, page_size?) -> query-page
Stable ID
world.settlement.list
Owner
game.settlement
Authority
read_only
Timing
immediate
Availability
active-session
Side effects
none
Determinism
stable owner order at the current committed tick
Introduced
1.9.0

Usage

Read a bounded stable page of loaded settlements without requiring an Actor selection. Use the detached counts for the normal village summary.

Parameters

Returns

Detached Settlement identities, revisions, names, and resident, Household, Building, stockpile, and active-project counts in stable order.

Cost

Bounded by page size and direct Settlement index visits.

Fields

IDTypeUnitsRequiredDescription
actor_countunsigned-integernoneyesMember actor count.
building_countunsigned-integernoneyesMember building count.
household_countunsigned-integernoneyesMember household count.
job_countunsigned-integernoneyesMember job count.
revisionunsigned-integernoneyesOwner revision.
settlement_idstable-idnoneyesSettlement identity.
stockpile_countunsigned-integernoneyesMember stockpile count.

Errors

Examples

local villages = world.query("world.settlement.list", {page_size = 1})

API history

Related symbols

Project references