<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Plot.GetArea_%28Civ5_API%29</id>
	<title>Plot.GetArea (Civ5 API) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Plot.GetArea_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Plot.GetArea_(Civ5_API)&amp;action=history"/>
	<updated>2026-04-25T11:31:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=Plot.GetArea_(Civ5_API)&amp;diff=12415&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Plot.GetArea_(Civ5_API)&amp;diff=12415&amp;oldid=prev"/>
		<updated>2012-09-20T10:08:56Z</updated>

		<summary type="html">&lt;p&gt;Bot update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Civ5 API Beta Banner}}&lt;br /&gt;
&amp;#039;&amp;#039;This page is a part of the [[Lua and UI Reference (Civ5)]].&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TypeInfos5|Function.png|This function is a member of {{Type5|Plot}}.&amp;lt;br/&amp;gt;&lt;br /&gt;
This is an instance method, invoke it with a colon.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;{{Type5|AreaID}} Plot:GetArea&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt;&amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Returned Value&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:No description available.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source code samples=&lt;br /&gt;
&amp;#039;&amp;#039;Redundant occurences have been removed.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Amazon_XP.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Maps/Amazon_XP.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0987}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0989}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adding this check for Great Plains&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0990}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if x &amp;lt; 1 or x &amp;gt;= iW - 1 or y &amp;lt; 1 or y &amp;gt;= iH - 1 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|AssignStartingPlots.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0888}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local thisPlotsArea = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0889}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if thisPlotsArea ~= iAreaID then -- This plot is not a member of the landmass, set value to 0&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1554}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iArea = plot:GetArea();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1791}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area_of_plot = plot:GetArea();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|5225}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iAreaID = plot:GetArea();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|6328}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|6329}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if area ~= area_ID and area_ID ~= -1 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Boreal.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Maps/Boreal.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0718}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0720}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adding this check for Highlands&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0721}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if x &amp;lt; 1 or x &amp;gt;= iW - 1 or y &amp;lt; 1 or y &amp;gt;= iH - 1 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Europe.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Maps/Europe.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0492}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local testAreaID = testPlot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0493}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local testArea = Map.GetArea(testAreaID)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|FeatureGenerator.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Gameplay/Lua/FeatureGenerator.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0382}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iArea = adjPlot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0383}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local adjArea = Map.GetArea(iArea)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Four_Corners.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/Four_Corners.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0498}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0500}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adding this check for Four Corners&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0501}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if x &amp;lt; 1 or x &amp;gt;= iW - 1 or y &amp;lt; 1 or y &amp;gt;= iH - 1 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|InlandSea.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/InlandSea.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0302}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0304}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adding this check for Inland Sea&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0305}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if x &amp;lt; 1 or x &amp;gt;= iW - 1 or y &amp;lt; 1 or y &amp;gt;= iH - 1 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Lakes.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/Lakes.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0194}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0196}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adding this check for Lakes&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0197}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if y &amp;lt; 4 or y &amp;gt;= iH - 4 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|MapGenerator.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Gameplay/Lua/MapGenerator.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0626}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local areaID = plot:GetArea();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|MapmakerUtilities.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Gameplay/Lua/MapmakerUtilities.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0098}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plotFirst:GetArea();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0102}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;area = plotLast:GetArea();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0138}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|North_vs_South.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/North_vs_South.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0669}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0671}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adding this check for North vs South&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0672}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if x &amp;lt; 1 or x &amp;gt;= iW - 1 or y &amp;lt; 1 or y &amp;gt;= iH - 1 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Ring.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/Ring.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0642}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0644}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adding this check for Ring, to force all City States to the polar region in the center.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0645}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (x &amp;gt; centWestX and x &amp;lt; centEastX and y &amp;gt; centSouthY and y &amp;lt; centNorthY) == false then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Skirmish.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/Skirmish.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|1067}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1069}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adding this check for Skirmish.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|1070}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if x &amp;lt; 1 or x &amp;gt;= iW - 1 or y &amp;lt; 1 or y &amp;gt;= iH - 1 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Terra.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/Terra.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0650}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local adjAreaID = adjPlot:GetArea();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0749}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iAreaID = adjPlot:GetArea();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|West_vs_East.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/West_vs_East.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0569}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local area = plot:GetArea()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0571}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adding this check for West vs East.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0572}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if x &amp;lt; 1 or x &amp;gt;= iW - 1 or y &amp;lt; 1 or y &amp;gt;= iH - 1 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Civ5 API Footer}}&lt;br /&gt;
[[Category:Civ5 Methods and Functions|GetArea]]&lt;br /&gt;
[[Category:Civ5 Terrain API|GetArea]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>