<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetChapterShortName</id>
	<title>API:GetChapterShortName - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetChapterShortName"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetChapterShortName&amp;action=history"/>
	<updated>2026-10-17T11:51:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:GetChapterShortName&amp;diff=30358&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetChapterShortName&amp;diff=30358&amp;oldid=prev"/>
		<updated>2026-10-16T19:43:18Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Tome}}&lt;br /&gt;
Returns the short name of the War Journal chapter that belongs to an influence area.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
shortName = GetChapterShortName(influenceId)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;influenceId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Influence id of a chapter.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;shortName : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Short chapter name; empty if the name table is not loaded. Nothing is returned if the id is invalid.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* [[API:GetChapterName|GetChapterName]] returns the full name.&lt;br /&gt;
* The error message for an invalid id names &amp;lt;code&amp;gt;GetChapterName&amp;lt;/code&amp;gt;, not &amp;lt;code&amp;gt;GetChapterShortName&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Exactly one argument must be passed.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
Written to the UI log, and the function returns nothing.&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;GetChapterName&amp;#039;: %d is not a valid influence id.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_objectivetrackers/source/publicquesttrackerwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local influenceID = EA_Window_PublicQuestTracker.GetLocalAreaInfluenceID()&lt;br /&gt;
if ((influenceID ~= nil) and (influenceID &amp;gt; 0))&lt;br /&gt;
then&lt;br /&gt;
    local chapterName = GetChapterShortName( influenceID )&lt;br /&gt;
    LabelSetText(&amp;quot;EA_Window_PublicQuestTrackerLocationChapterLabel&amp;quot;, chapterName)&lt;br /&gt;
else&lt;br /&gt;
    LabelSetText(&amp;quot;EA_Window_PublicQuestTrackerLocationChapterLabel&amp;quot;, L&amp;quot;&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetChapterName|GetChapterName]]&lt;br /&gt;
* [[API:GetInfluenceData|GetInfluenceData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>