Map.GetCustomOption (Civ5 API)

From Civilization Modding Wiki
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This function is a member of Map.

This is a static method, invoke it with a dot.


Usage

int Map.GetCustomOption(int optionIndex)


Returned Value

No description available.

Parameters

optionIndex: No description available.


Source code samples

Too many occurences. Only 50 out of 133 are listed.

Arborea.lua (G&K)

DLC/Expansion/Maps/Arborea.lua
0113
local sea_level = Map.GetCustomOption(4)
0114
if sea_level == 4 then
0117
local world_age = Map.GetCustomOption(1)
0118
if world_age == 4 then
0631
userInputLandmass = Map.GetCustomOption(6) -- GLOBAL variable
0632
if userInputLandmass == 5 then -- Random
0673
local sea = Map.GetCustomOption(4)
0674
if sea == 4 then
0677
local age = Map.GetCustomOption(1)
0678
if age == 4 then
0719
local temp = Map.GetCustomOption(2)
0720
if temp == 4 then
0743
local rain = Map.GetCustomOption(3)
0744
if rain == 4 then
0907
local res = Map.GetCustomOption(5)
0908
if res == 6 then


Boreal.lua (G&K)

DLC/Expansion/Maps/Boreal.lua
0593
local rain = Map.GetCustomOption(2)
0594
if rain == 4 then
0776
local res = Map.GetCustomOption(3)
0777
if res == 6 then


Four_Corners.lua

Maps/Four_Corners.lua
0121
local buffer_setting = Map.GetCustomOption(5)
0122
if buffer_setting == 3 then
0530
local res = Map.GetCustomOption(4)
0531
if res == 6 then


Frontier.lua (G&K)

DLC/Expansion/Maps/Frontier.lua
0627
userInputLandmass = Map.GetCustomOption(6)
0628
if userInputLandmass == 3 then


Hemispheres.lua (G&K)

DLC/Expansion/Maps/Hemispheres.lua
0170
local island_setting = Map.GetCustomOption(5)
0171
if island_setting == 5 then
0940
local team_setting = Map.GetCustomOption(6)
0942
-- If two teams are present, use team-oriented handling of start points, one team west, one east.
0943
if iNumTeams == 2 and team_setting == 1 then
1120
local team_setting = Map.GetCustomOption(5)
1121
if iNumTeams == 2 and team_setting == 1 then


Highlands.lua

Maps/Highlands.lua
0117
local userInputGrain = Map.GetCustomOption(4)
0118
local userInputPeaks = Map.GetCustomOption(5)
0119
local userInputLakes = Map.GetCustomOption(6)
0120
if userInputGrain == 5 then -- Random
0231
local temp = Map.GetCustomOption(1)
0232
if temp == 4 then


Ice_Age.lua

Maps/Ice_Age.lua
0102
local userInputLandmass = Map.GetCustomOption(6)
0103
land_type = userInputLandmass - 1;
0235
local temperature = Map.GetCustomOption(2)
0236
if temperature == 4 then


Lakes.lua

Maps/Lakes.lua
0089
local userInputLakes = Map.GetCustomOption(5)
0090
if userInputLakes == 4 then -- Random


North_vs_South.lua

Maps/North_vs_South.lua
0491
local team_setting = Map.GetCustomOption(5)
0493
-- If two teams are present, use team-oriented handling of start points, one team north, one south.
0494
if iNumTeams == 2 and team_setting == 1 then


Ring.lua

Maps/Ring.lua
0130
dominant_terrain = Map.GetCustomOption(1) -- GLOBAL variable.
0131
if dominant_terrain == 5 then -- Random
0134
local landmass_type = Map.GetCustomOption(2);
0138
local bridge_width = Map.GetCustomOption(3)
0139
if bridge_width == 4 then -- Random


Skirmish.lua

Maps/Skirmish.lua
0104
dominant_terrain = Map.GetCustomOption(1) -- GLOBAL variable.
0105
if dominant_terrain == 9 then -- Random
0108
userInputWaterSetting = Map.GetCustomOption(2) -- GLOBAL variable.
0109
if userInputWaterSetting == 6 then -- Random


Tilted_Axis.lua (G&K)

DLC/Expansion/Maps/Tilted_Axis.lua
0134
local sea_level = Map.GetCustomOption(3)
0135
if sea_level == 3 then
0648
userInputLandmass = Map.GetCustomOption(5) -- GLOBAL variable
0649
if userInputLandmass == 5 then -- Random
0690
local sea = Map.GetCustomOption(3)
0691
if sea == 3 then


West_vs_East.lua

Maps/West_vs_East.lua
0313
local team_setting = Map.GetCustomOption(5)
0315
-- If two teams are present, use team-oriented handling of start points, one team west, one east.
0316
if iNumTeams == 2 and team_setting == 1 then



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.