MultiOptionType (Civ5 Type)

From Civilization Modding Wiki
Jump to: navigation, search


  • DB.png Integers labeled as MultiOptionType corresponds to the ID column of the MultiplayerOptions XML table.

XML: the MultiplayerOptions table

Here are the ID and Type columns found in this table.

ID Type


Here are different ways to query the database to retrieve the ID from the type. Those examples will return and assign the integer value 0. See also GameInfo.

local id = GameInfo.MultiplayerOptions.MPOPTION_SIMULTANEOUS_TURNS.ID
local id = GameInfo["MultiplayerOptions"].["MPOPTION_SIMULTANEOUS_TURNS"].ID
local id = GameInfo.MultiplayerOptions{Type="MPOPTION_SIMULTANEOUS_TURNS"}().ID

Alternatively you could use the ID or the type to retrieve the value of the Description column. Those examples will return and assign the value TXT_KEY_MP_OPTION_SIMULTANEOUS_TURNS.

local description = GameInfo.MultiplayerOptions[0].Description
local description = GameInfo["MultiplayerOptions"][0]["Description"]
local description = GameInfo.MultiplayerOptions{ID=0}().Description

Used by

bool Game.IsMPOption(MultiOptionType index)
