Home › Operations › Player operations › CHOOSE_ARTIFACT_PLAYER

Available out of the box. Usable from Lua in the unmodified game.

CHOOSE_ARTIFACT_PLAYER

Lua constant PlayerOperations.CHOOSE_ARTIFACT_PLAYER
Hash 0x07247e03
Kind Player operations
Status verified
Handled in case of Player::Operations::Manager::Process (symbol 0x30cff9, current 0x30e209)

Finishes an archaeologist artifact excavation: the chosen player receives the artifact as a great work.

See also: player-operation.MOVE_GREAT_WORK, Game.GetGreatWorkPlayer

Parameters

Pass these as the keys of the parameter table (for example tParameters[PlayerOperations.PARAM_PLAYER_ONE] = value). Meanings come from the parameter reference.

Events sent

UNIT_ARTIFACT_CHANGED, UNIT_VISIBILITY_CHANGED

Functions called (names from the symbol build)

Units::GetNextExtractingArchaeologistID, Districts::Find, Culture::Get, Culture::SetGreatWorkPlayer, Instance>::edit, Culture::AddArtifactToBuilding, Event::Send, Buildings::GetFreeSlot, Units::DelayedDestroy

Evidence: static-analysis — hash comparison in the Process decision tree