Skip to content

GetPlayerCivilization

Read the current player-slot civilization from lobby options.

options:GetPlayerCivilization(slot)

Inputs: slot is a zero-based lobby slot integer in 0..7, not an in-game player ID.

Output: The integer value, or nil when it cannot be read.

Errors and unavailable states: A non-integer slot raises a Lua argument error. An invalid slot, missing layout, or unavailable lobby returns nil.

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