query · world.settlement

Settlement production options

Returns the latest Settlement-owned production alternatives, physical feasibility, scores, selection, and exact Production owner bindings.

world.settlement.production-options(filters?, cursor?, page_size?) -> query-page
Stable ID
world.settlement.production-options
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.19.0

Usage

Inspect the Settlement-owned production alternatives considered during its latest strategy evaluation. The query is detached and cannot create, claim, advance, or cancel Production or Work.

Parameters

Returns

Detached option rows with decision cadence and budget counts; recipe, building, material source, output, quantity, eligible labor, condition, capacity, route, goal-support, and active direct-supply evidence; deterministic score and rejection; selection; and the exact Production order identity and revision when bound.

Cost

One exact Settlement lookup plus one bounded traversal of the latest retained production-option page. Recurring composition uses authored opportunity, selection, and cadence budgets and reads only current owner facts.

Fields

IDTypeUnitsRequiredDescription
active_direct_supply_countunsigned-integernoneyesActive direct Supply commitments for the same need.
available_input_quantityunsigned-integernoneyesUsable input quantity.
available_service_capacityunsigned-integernoneyesUnreserved capacity.
building_conditionunsigned-integerbasis-pointsyesObserved condition.
building_definition_idstringnoneyesBuilding definition identity.
building_idstable-id-or-nullnonenoObserved building identity.
building_revisionrevision-or-nullnonenoObserved building revision.
candidate_visit_countunsigned-integernoneyesAlternatives visited.
current_output_quantityunsigned-integernoneyesCurrent household output.
detailstringnoneyesDirect selection or rejection explanation.
eligible_candidate_countunsigned-integernoneyesFeasible alternatives.
eligible_labor_countunsigned-integernoneyesLiving adult settlement labor observed for the strategy horizon.
evaluation_tickunsigned-integerfixed-ticksyesFixed tick evaluated.
goal_supportunsigned-integerbasis-pointsyesActive plan support.
output_resource_idstable-idnoneyesOutput resource identity.
policy_keystringnoneyesData-authored production opportunity identity.
production_order_idstable-id-or-nullnonenoBound Production order.
production_order_revisionrevision-or-nullnonenoBound order revision.
recipe_definition_idstringnoneyesRecipe definition identity.
rejectionenumerationnoneyesDirect ineligibility reason or none.
required_input_quantityunsigned-integernoneyesRequired input quantity.
required_service_capacityunsigned-integernoneyesRecipe capacity need.
route_cost_ticksunsigned-integerfixed-ticksyesObserved route cost.
scoresigned-integerbasis-pointsyesDeterministic option score.
selectedbooleannoneyesWhether Settlement selected this option.
selected_candidate_countunsigned-integernoneyesSelected alternatives.
settlement_idstable-idnoneyesSettlement identity.
settlement_revisionrevisionnoneyesCurrent Settlement owner revision.
source_container_idstable-id-or-nullnonenoMaterial source identity.
source_revisionrevision-or-nullnonenoMaterial source revision.
source_settlement_revisionrevisionnoneyesSettlement revision used to compose the decision.
target_output_quantityunsigned-integernoneyesAuthored output target.
tuning_versionunsigned-integernoneyesFixed-point production reasoner tuning version.

Errors

Examples

local options = world.query("world.settlement.production-options", {filters = {settlement_id = 1}, page_size = 16})

API history

Related symbols

Project references