<?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=Matchmaking.GetLocalID_%28Civ5_API%29</id>
	<title>Matchmaking.GetLocalID (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=Matchmaking.GetLocalID_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Matchmaking.GetLocalID_(Civ5_API)&amp;action=history"/>
	<updated>2026-04-06T18:40:35Z</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=Matchmaking.GetLocalID_(Civ5_API)&amp;diff=11480&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Matchmaking.GetLocalID_(Civ5_API)&amp;diff=11480&amp;oldid=prev"/>
		<updated>2012-09-20T06:33:42Z</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|Matchmaking}}.&amp;lt;br/&amp;gt;&lt;br /&gt;
This is a static method, invoke it with a dot.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;{{Type5|PlayerID}} Matchmaking.GetLocalID&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|MPGameOptions.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/FrontEnd/Multiplayer/GameSetup/MPGameOptions.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0021}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;return Matchmaking.GetLocalID() ~= -1;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0032}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;m_bIsInStagingRoom = (Matchmaking.GetLocalID() ~= -1);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0038}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;return (Matchmaking.IsHost() and PreGame.GetLoadFileName() == &amp;quot;&amp;quot;) or PreGame.IsHotSeatGame() or Matchmaking.GetLocalID() == -1;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0045}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;return (PreGame.GetLoadFileName() == &amp;quot;&amp;quot; and Matchmaking.GetLocalID() == -1) or PreGame.IsHotSeatGame();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0218}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if(Matchmaking.GetLocalID() == -1 or Matchmaking.IsHost()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|StagingRoom.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/FrontEnd/Multiplayer/StagingRoom.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0070}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;PreGame.SetLeaderName( Matchmaking.GetLocalID(), &amp;quot;&amp;quot; );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0071}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;PreGame.SetCivilizationDescription( Matchmaking.GetLocalID(), &amp;quot;&amp;quot; );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0072}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;PreGame.SetCivilizationShortDescription( Matchmaking.GetLocalID(), &amp;quot;&amp;quot; );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0073}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;PreGame.SetCivilizationAdjective( Matchmaking.GetLocalID(), &amp;quot;&amp;quot; );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0075}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local civIndex = PreGame.GetCivilization( Matchmaking.GetLocalID() );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0128}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;return Matchmaking.GetLocalID();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0192}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;PreGame.SetReady( Matchmaking.GetLocalID(), bChecked );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0291}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if( playerInfo.playerID == Matchmaking.GetLocalID() ) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0497}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local playerName = playerInfo.playerName or Locale.ConvertTextKey( &amp;quot;TXT_KEY_MULTIPLAYER_DEFAULT_PLAYER_NAME&amp;quot;, Matchmaking.GetLocalID() + 1);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0515}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;SimpleCivIconHookup( Matchmaking.GetLocalID(), 64, Controls.Icon);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0528}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local teamID = PreGame.GetTeam(Matchmaking.GetLocalID()) + 1; -- Real programmers count from zero.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0534}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Controls.HandicapLabel:LocalizeAndSetText( GameInfo.HandicapInfos( &amp;quot;ID = &amp;#039;&amp;quot; .. PreGame.GetHandicap( Matchmaking.GetLocalID() ) .. &amp;quot;&amp;#039;&amp;quot; )().Description );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0540}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local bIsReady = PreGame.IsReady( Matchmaking.GetLocalID() );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0543}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;PreGame.SetReady(Matchmaking.GetLocalID(), true);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0564}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Controls.HostIcon:SetHide( Matchmaking.GetLocalID() ~= m_HostID );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0743}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if( playerID ~= Matchmaking.GetLocalID() ) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0856}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;PreGame.SetReady( Matchmaking.GetLocalID() );&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|GetLocalID]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>