<?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=TestMembership_%28Civ5_API%29</id>
	<title>TestMembership (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=TestMembership_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=TestMembership_(Civ5_API)&amp;action=history"/>
	<updated>2026-04-11T06:52:51Z</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=TestMembership_(Civ5_API)&amp;diff=10400&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=TestMembership_(Civ5_API)&amp;diff=10400&amp;oldid=prev"/>
		<updated>2012-09-19T16:48:50Z</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 global function. Use: &amp;lt;code&amp;gt;include(&amp;quot;MapmakerUtilities.lua&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; TestMembership&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt;table(&amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; =&amp;gt; {{Type5|PlayerID}}) table, {{Type5|PlayerID}} value&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;
&amp;#039;&amp;#039;&amp;#039;Parameters&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|table:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;No description available.&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|value:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;No description available.&amp;#039;&amp;#039;&lt;br /&gt;
|}&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|1037}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local test = TestMembership(self.resourceIDs_assigned_to_regions, res_ID)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|1038}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if self.iNumTypesAssignedToRegions &amp;lt; self.iNumMaxAllowedForRegions or test == true then -- Not a new type that would exceed number of allowed types, so continue.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1071}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local test = TestMembership(self.resourceIDs_assigned_to_regions, res_ID)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|1072}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if self.iNumTypesAssignedToRegions &amp;lt; self.iNumMaxAllowedForRegions or test == true then -- Won&amp;#039;t exceed allowed types.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1160}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local already_assigned = TestMembership(self.resourceIDs_assigned_to_regions, resource_ID)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|1161}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if not already_assigned then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1174}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local test = TestMembership(self.resourceIDs_assigned_to_regions, res_ID)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|1175}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if test == false then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1227}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local test1 = TestMembership(self.resourceIDs_assigned_to_regions, res_ID)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|1228}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local test2 = TestMembership(self.resourceIDs_assigned_to_cs, res_ID)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|1229}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if test1 == false and test2 == false 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|1558}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if TestMembership(land_area_IDs, iArea) == false then -- This plot is the first detected in its AreaID.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1617}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if TestMembership(fertility_value_list, interim_table[tableConstructionLoop]) == true then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1690}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if TestMembership(inhabitedAreaIDs, bestRemainingArea) == false then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|6153}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if TestMembership(areas_inhabited_by_civs, region_areaID) == false then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|6197}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if TestMembership(areas_inhabited_by_civs, areaID) == true then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|6210}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if TestMembership(areas_uninhabited, areaID) == true then&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|0073}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local bCheckTeamList = TestMembership(teams_with_major_civs, teamID)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0074}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if bCheckTeamList == false then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0490}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local bTest = TestMembership(priorityRegionIDs, region_type);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0509}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local bTest = TestMembership(avoidRegionIDs, region_type);&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|TestMembership]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>