Player.SetStartingPlot (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 Player.

This is an instance method, invoke it with a colon.


Usage

void Player:SetStartingPlot(Plot plot)


Parameters

plot: No description available.


Source code samples

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

AssignStartingPlots.lua (G&K)

DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
4597
player:SetStartingPlot(start_plot)
4598
end
4737
player:SetStartingPlot(plot);
6630
cityState:SetStartingPlot(cs_start_plot)
6631
self:GenerateLuxuryPlotListsAtCitySite(x, y, 1, true) -- Removes Feature Ice from coasts adjacent to the city state's new location
6745
cityState:SetStartingPlot(cs_start_plot)
6746
self:GenerateLuxuryPlotListsAtCitySite(cs_x, cs_y, 1, true) -- Removes Feature Ice from coasts adjacent to the city state's new location


Europe_Scenario.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/Europe_Scenario.lua
1208
player:SetStartingPlot(start_plot)
1209
--print("England being placed in plot " .. x .. ", " .. y .. ".");
1211
-- Celts
1212
local region_number = 1;
1217
player:SetStartingPlot(start_plot)
1218
--print("Celts being placed in plot " .. x .. ", " .. y .. ".");
1220
-- Arabia
1221
local region_number = 3;
1226
player:SetStartingPlot(start_plot)
1227
--print("Arabia being placed in plot " .. x .. ", " .. y .. ".");
1229
-- Songhai
1230
local region_number = 4;
1235
player:SetStartingPlot(start_plot)
1236
--print("Songhai being placed in plot " .. x .. ", " .. y .. ".");
1238
-- Ottomans
1239
local region_number = 5;
1244
player:SetStartingPlot(start_plot)
1245
--print("Ottomans being placed in plot " .. x .. ", " .. y .. ".");
1247
-- Byzantium
1248
local region_number = 6;
1253
player:SetStartingPlot(start_plot)
1254
--print("Byzantium being placed in plot " .. x .. ", " .. y .. ".");
1256
-- Spain
1257
local region_number = 7;
1262
player:SetStartingPlot(start_plot)
1263
--print("Spain being placed in plot " .. x .. ", " .. y .. ".");
1265
-- France
1266
local region_number = 8;
1271
player:SetStartingPlot(start_plot)
1272
--print("France being placed in plot " .. x .. ", " .. y .. ".");
1274
-- Netherlands
1275
local region_number = 9;
1280
player:SetStartingPlot(start_plot)
1281
--print("Netherlands being placed in plot " .. x .. ", " .. y .. ".");
1283
-- Austria
1284
local region_number = 10;
1289
player:SetStartingPlot(start_plot)
1290
--print("Austria being placed in plot " .. x .. ", " .. y .. ".");
1292
-- Sweden
1293
local region_number = 11;
1298
player:SetStartingPlot(start_plot)
1299
--print("Sweden being placed in plot " .. x .. ", " .. y .. ".");
1301
-- Russia
1302
local region_number = 12;
1307
player:SetStartingPlot(start_plot)
1308
--print("Russia being placed in plot " .. x .. ", " .. y .. ".");
1310
end


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
1237
pPlayer:SetStartingPlot(start_plot);



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.