<?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%3AGetChapterName</id>
	<title>API:GetChapterName - 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%3AGetChapterName"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetChapterName&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:GetChapterName&amp;diff=30357&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:GetChapterName&amp;diff=30357&amp;oldid=prev"/>
		<updated>2026-10-16T19:43:17Z</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 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;
name = GetChapterName(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, for example &amp;lt;code&amp;gt;groupLeaderData.influenceID&amp;lt;/code&amp;gt; in the stock party window.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;name : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – 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:GetChapterShortName|GetChapterShortName]] returns the short form of the name.&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_openpartywindow/source/openpartywindowtabnearby.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LabelSetText (TOOLTIP_WIN..&amp;quot;ObjectiveText&amp;quot;,     GetChapterName(groupLeaderData.influenceID)..L&amp;quot;: &amp;quot;..groupLeaderData.objectiveName)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_alerttextwindow/source/alerttextwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if (infID &amp;gt; 0 and not hasPQButNoInfluence)&lt;br /&gt;
then&lt;br /&gt;
    chapterName = GetChapterName( infID )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetChapterShortName|GetChapterShortName]]&lt;br /&gt;
* [[API:GetInfluenceData|GetInfluenceData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>