query · world.settlement

Settlement environment

Returns current settlement-region weather, ecology, and the resulting routine adaptation.

world.settlement.environment(filters?, cursor?, page_size?) -> query-page
Stable ID
world.settlement.environment
Owner
sim.world-environment, sim.world-ecology, game.actor-routine, and game.household
Authority
read_only
Timing
immediate
Availability
active-session
Side effects
none
Determinism
stable owner order at the current committed tick
Introduced
1.14.0

Usage

Read the starter settlement region's current weather, ecology, resulting resident adaptation, and retained household disruption without changing owner state.

Parameters

Returns

One detached row with region, biome, weather, pressure, resident adaptation, outdoor-work availability, wildlife populations, renewable availability, and stable, disrupted, or recovering household counts.

Cost

One bounded Environment region traversal, Ecology population and renewable-source traversal, and Household traversal.

Fields

IDTypeUnitsRequiredDescription
adaptationenumerationnoneyesCurrent resident routine adaptation.
biomeenumerationnoneyesSettlement region biome.
disrupted_householdsunsigned-integernoneyesHouseholds retaining environmental strain.
environmental_household_strainunsigned-integerbasis-pointsyesEnvironmental strain retained across all households.
environmental_pressuresigned-integerpressure-unitsyesCurrent combined biome, season, and weather pressure.
grazer_populationunsigned-integerpopulation-unitsyesCurrent regional grazer population.
household_conditionenumerationnoneyesCurrent stable, disrupted, or recovering household condition.
outdoor_work_availablebooleannoneyesWhether current conditions permit new outdoor work.
predator_populationunsigned-integerpopulation-unitsyesCurrent regional predator population.
recovering_householdsunsigned-integernoneyesHouseholds in the bounded safe-weather recovery window.
region_idstable-idnoneyesSettlement region identity.
renewable_availableunsigned-integerresource-unitsyesAvailable renewable resources in the region.
renewable_capacityunsigned-integerresource-unitsyesRenewable resource capacity in the region.
weatherenumerationnoneyesCurrent settlement weather.

Errors

Examples

local conditions = world.query("world.settlement.environment", {page_size = 1})

API history

Related symbols

Project references