<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://war.app/index.php?action=history&amp;feed=atom&amp;title=Mod_API_Reference%3AClient_TerritoryInfo</id>
	<title>Mod API Reference:Client TerritoryInfo - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://war.app/index.php?action=history&amp;feed=atom&amp;title=Mod_API_Reference%3AClient_TerritoryInfo"/>
	<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:Client_TerritoryInfo&amp;action=history"/>
	<updated>2026-11-04T15:05:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:Client_TerritoryInfo&amp;diff=8046&amp;oldid=prev</id>
		<title>Fizzer: Created page with &quot;Put the function in a file named &lt;code&gt;Client_TerritoryInfo.lua&lt;/code&gt;:  &lt;pre&gt; function Client_TerritoryInfo(game, territory, info)     info.AddRow(&#039;Fortified: +3 defense&#039;); end &lt;/pre&gt;  The client calls this hook when a player looks at a territory: in the territory inspector, and in the tooltip shown when hovering over it. Each row your mod adds is shown on its own line.  {| class=&quot;wikitable&quot; ! Argument !! Type !! Description |- | &lt;code&gt;game&lt;/code&gt; || Mod API Reference...&quot;</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:Client_TerritoryInfo&amp;diff=8046&amp;oldid=prev"/>
		<updated>2026-11-02T10:53:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Put the function in a file named &amp;lt;code&amp;gt;Client_TerritoryInfo.lua&amp;lt;/code&amp;gt;:  &amp;lt;pre&amp;gt; function Client_TerritoryInfo(game, territory, info)     info.AddRow(&amp;#039;Fortified: +3 defense&amp;#039;); end &amp;lt;/pre&amp;gt;  The client calls this hook when a player looks at a territory: in the territory inspector, and in the tooltip shown when hovering over it. Each row your mod adds is shown on its own line.  {| class=&amp;quot;wikitable&amp;quot; ! Argument !! Type !! Description |- | &amp;lt;code&amp;gt;game&amp;lt;/code&amp;gt; || Mod API Reference...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Put the function in a file named &amp;lt;code&amp;gt;Client_TerritoryInfo.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function Client_TerritoryInfo(game, territory, info)&lt;br /&gt;
    info.AddRow(&amp;#039;Fortified: +3 defense&amp;#039;);&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The client calls this hook when a player looks at a territory: in the territory inspector, and in the tooltip shown when hovering over it. Each row your mod adds is shown on its own line.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Argument !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;game&amp;lt;/code&amp;gt; || [[Mod API Reference:ClientGame|ClientGame]] || Information about the game.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;territory&amp;lt;/code&amp;gt; || [[Mod API Reference:TerritoryDetails|TerritoryDetails]] || The territory being looked at. Use &amp;lt;code&amp;gt;territory.ID&amp;lt;/code&amp;gt; to look it up elsewhere, such as in &amp;lt;code&amp;gt;game.LatestStanding.Territories&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;info&amp;lt;/code&amp;gt; || table || The object you add rows with. See below.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;info.AddRow(text)&amp;#039;&amp;#039;&amp;#039;: adds a line of plain text. It returns &amp;lt;code&amp;gt;info&amp;lt;/code&amp;gt;, so calls can be chained.&lt;br /&gt;
&lt;br /&gt;
Limits and notes:&lt;br /&gt;
* Up to 10 rows per mod are shown, and each row is cut to 200 characters. Extra rows are ignored, and a warning is written to the mod log.&lt;br /&gt;
* The client remembers your rows for each territory until the game refreshes or the player views a different point in the game&amp;#039;s history. It doesn&amp;#039;t call the hook every time the tooltip is drawn.&lt;br /&gt;
* &amp;lt;code&amp;gt;game.LatestStanding&amp;lt;/code&amp;gt; is always the latest turn, even when the player is viewing history.&lt;br /&gt;
* If the hook errors, the error is shown once. The hook isn&amp;#039;t called again until the game next refreshes or the player views a different point in history, so a broken mod doesn&amp;#039;t show an error for every territory the player hovers over.&lt;/div&gt;</summary>
		<author><name>Fizzer</name></author>
	</entry>
</feed>