query · world.settlement

Settlement economy

Returns one detached summary of the village's current production, pay, household market, and regional delivery state.

world.settlement.economy(filters?, cursor?, page_size?) -> query-page
Stable ID
world.settlement.economy
Owner
game.production, game.trade, game.resource-economy, 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.13.0

Usage

Read the current authored production and trade opportunities, completed cycle counts, waits, pay, household purchase, merchant shipment, and delivered stock from their gameplay owners for the normal village interface.

Parameters

Returns

One detached economy row with authored opportunity keys, current stages and workers, completed cycle counts, known waits, wage and purchase completion, household output quantity, destination Site, and delivered trade quantity.

Cost

One bounded Production order traversal, Trade shipment traversal, Resource container traversal, and custody-transfer traversal.

Fields

IDTypeUnitsRequiredDescription
completed_production_cyclesunsigned-integernoneyesCompleted production cycles retained by Production.
completed_trade_cyclesunsigned-integernoneyesCompleted trade cycles retained by Trade.
delivered_trade_quantityunsigned-integerresource-unitsyesAuthored trade resource held at its destination.
household_output_quantityunsigned-integerresource-unitsyesCurrent recipe output held by household goods inventories.
household_purchase_completedbooleannoneyesWhether a household completed a goods purchase.
merchant_actor_idstable-id-or-nullnonenoMerchant leading the shipment when present.
production_blockagestring-or-nullnonenoReason the current production cycle is waiting when known.
production_opportunity_keystring-or-nullnonenoAuthored production opportunity being summarized.
production_stageenumerationnoneyesCurrent production stage.
production_worker_idstable-id-or-nullnonenoAssigned worker on the current production cycle when present.
trade_blockagestring-or-nullnonenoReason the current trade cycle is waiting when known.
trade_destination_site_idstable-id-or-nullnonenoShipment destination Site when present.
trade_opportunity_keystring-or-nullnonenoAuthored trade opportunity being summarized.
trade_stageenumerationnoneyesCurrent regional shipment stage.
wage_paidbooleannoneyesWhether a production wage was paid.

Errors

Examples

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

API history

Related symbols

Project references