query · world.actor

Actor work status

Returns detached authored identity, health, plan, task, work stage, progress, and destination facts for one actor.

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

Usage

Query one actor_id to inspect the villager's authored name and profession, injury, illness, impairment, recovery readiness, current plan and task, work stage and progress, and current source or destination without changing behavior.

Parameters

Returns

One detached worker-status record, or a stable unavailable result when the Actor is not embodied or loaded.

Cost

One Actor visit and bounded visits to the matching Supply or Construction owner.

Fields

IDTypeUnitsRequiredDescription
actor_idstable-idnoneyesActor identity.
destination_site_idstable-id-or-nullnonenoCurrent plan or work destination site.
display_namestringnoneyesAuthored display name or stable fallback label.
illnessunsigned-integerbasis-pointsyesCurrent illness severity.
impairmentunsigned-integerbasis-pointsyesCurrent physical impairment.
injuryunsigned-integerbasis-pointsyesCurrent injury severity.
job_idstable-id-or-nullnonenoCurrent job identity.
plan_changeenumerationnoneyesReason for the latest plan change.
plan_kindenumerationnoneyesCurrent plan kind.
plan_revisionunsigned-integernoneyesCurrent plan revision.
plan_statusenumerationnoneyesCurrent plan status.
profession_definition_idstring-or-nullnonenoAuthored profession identity when the scenario supplies one.
profession_display_namestring-or-nullnonenoPlayer-facing authored profession name.
recovery_readybooleannoneyesWhether retained injury recovery is ready.
source_site_idstable-id-or-nullnonenoCurrent work source site.
target_x_metersnumber-or-nullmetersnoExact local destination X coordinate.
target_y_metersnumber-or-nullmetersnoExact local destination Y coordinate.
task_kindenumerationnoneyesCurrent task kind.
task_progressunsigned-integerbasis-pointsyesCurrent task progress.
task_statusenumerationnoneyesCurrent task status.
work_kindenumerationnoneyesCurrent supply, construction, or no work.
work_progressunsigned-integerbasis-pointsyesCurrent domain work progress.
work_stageenumerationnoneyesCurrent domain-owned work stage.
work_task_idstable-id-or-nullnonenoCurrent work-task identity.

Errors

Examples

local result = world.query("world.actor.status", {page_size = 1, filters = {actor_id = selected_id}})

API history

Related symbols

Project references