Skip to content

SetAssignedPlayerCivilization

Set the assigned player slot's civilization in local lobby options.

options:SetAssignedPlayerCivilization(civilization)

Inputs: civilization is an integer civilization ID. The slot is found from the assigned player; no slot argument is accepted.

Output: true when the local write succeeds; otherwise false. This does not confirm replication or host acceptance.

Errors and unavailable states: Returns false if the assigned slot, lobby, layout, or write is unavailable. A non-integer civilization raises a Lua argument error when an assigned slot is available.

Call on a fresh value from GetCurrentGameOptions(). See Lobby options overview.