query · world.settlement

Village families

Returns current Household membership, life-stage counts, residence, and latest change together with physical pantry and domestic-work facts.

world.settlement.families(filters?, cursor?, page_size?) -> query-page
Stable ID
world.settlement.families
Owner
game.household, game.actor-runtime, game.resource-economy, game.settlement-supply, and game.settlement
Authority
read_only
Timing
immediate
Availability
active-session
Side effects
none
Determinism
stable owner order at the current committed tick
Introduced
1.11.0

Usage

Read current village households, their membership and life-stage counts, assigned residence, physical pantry reserve, strain, latest care, and latest domestic Work without changing family state.

Parameters

Returns

Detached Household rows in current Settlement order with child, adolescent, adult, elder, residence, pantry food, strain, latest care, latest domestic Work, reason, and update facts.

Cost

One Settlement lookup, one bounded Household lookup per row, one Actor lookup per retained member, one pantry traversal, and one bounded Supply traversal per Household.

Fields

IDTypeUnitsRequiredDescription
adolescent_countunsigned-integernoneyesCurrent adolescent members.
adult_countunsigned-integernoneyesCurrent adult members.
child_countunsigned-integernoneyesCurrent child members.
domestic_work_stageenumeration-or-nullnonenoLatest pantry-restocking Work stage.
domestic_worker_idstable-id-or-nullnonenoActor assigned to the latest pantry-restocking Work.
elder_countunsigned-integernoneyesCurrent elder members.
household_idstable-idnoneyesHousehold identity.
last_reasonenumerationnoneyesLatest Household change reason.
latest_care_kindenumeration-or-nullnonenoLatest retained care activity.
latest_care_tickunsigned-integer-or-nullticksnoTick of the latest retained care activity.
member_countunsigned-integernoneyesCurrent Household members.
pantry_food_quantityunsigned-integernoneyesFood units physically held by the Household pantry.
residence_building_idstable-id-or-nullnonenoAssigned residence.
strainunsigned-integerbasis-pointsyesCurrent Household strain.
updated_at_tickunsigned-integerticksyesLatest Household update.

Errors

Examples

local families = world.query("world.settlement.families", {page_size = 8})

API history

Related symbols

Project references