Player.GetStartingPlot (Civ5 API)

From Civilization Modding Wiki
Revision as of 08:41, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Plot Player:GetStartingPlot()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

CivsAlive.lua - DLC_01 DLC

DLC/DLC_01/Scenarios/Mongol Scenario/CivsAlive.lua
0144
local playerStartPlot = Players[playerID]:GetStartingPlot();


TurnsRemaining.lua - DLC_02 DLC

DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0089
if (pPlayer1:GetStartingPlot():GetX() < 50 and pPlayer2:GetStartingPlot():GetX() > 50) then
0091
elseif (pPlayer2:GetStartingPlot():GetX() < 50 and pPlayer1:GetStartingPlot():GetX() > 50) then
0275
local myStartingPlot = (Players[myPlayer]) and Players[myPlayer]:GetStartingPlot() or nil;
0276
local theirStartingPlot = (Players[theirPlayer]) and Players[theirPlayer]:GetStartingPlot() or nil;
0335
if (pLoopPlayer:IsAlive() and pLoopPlayer:GetStartingPlot():GetX() > 50) then
0338
unit = pLoopPlayer:InitUnit (iUnitID, pLoopPlayer:GetStartingPlot():GetX(), pLoopPlayer:GetStartingPlot():GetY());
0346
unit = pLoopPlayer:InitUnit (iUnitID, pLoopPlayer:GetStartingPlot():GetX(), pLoopPlayer:GetStartingPlot():GetY(), GameInfoTypes.UNITAI_EXPLORE_SEA, DirectionTypes.DIRECTION_WEST);
0356
if (pLoopPlayer:IsAlive()and pLoopPlayer:GetStartingPlot():GetX() > 50) then
0446
if (newPlayer:GetStartingPlot():GetX() < 50) then
0448
elseif (oldPlayer:GetStartingPlot():GetX() < 50 and newPlayer:GetStartingPlot():GetX() > 50) then


TurnsRemaining.lua - DLC_04 DLC

DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0089
local playerStartPlot = pPlayer:GetStartingPlot();
0508
local playerStartPlot = player:GetStartingPlot();


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
1069
local startPlot = pPlayer:GetStartingPlot();


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/TurnsRemaining.lua
0847
local pPlot = pPlayer:GetStartingPlot();



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.