<?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%3ATomeGetWarJournalStorylineData</id>
	<title>API:TomeGetWarJournalStorylineData - 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%3ATomeGetWarJournalStorylineData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TomeGetWarJournalStorylineData&amp;action=history"/>
	<updated>2026-10-25T15:59:54Z</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:TomeGetWarJournalStorylineData&amp;diff=30827&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:TomeGetWarJournalStorylineData&amp;diff=30827&amp;oldid=prev"/>
		<updated>2026-10-16T19:50:47Z</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 a War Journal storyline with its list of entries (chapters).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
storylineData = TomeGetWarJournalStorylineData(storylineId)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;storylineId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Storyline id, from [[API:TomeGetWarJournalAvailiableStorylines|TomeGetWarJournalAvailiableStorylines]].&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;storylineData : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – The storyline&amp;#039;s data, or nothing if the id is invalid or the storyline is still locked.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Storyline id.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Storyline name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;summary&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Summary text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;entries&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of the storyline&amp;#039;s entries (see below).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each entry table in &amp;lt;code&amp;gt;entries&amp;lt;/code&amp;gt;:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Entry id, for [[API:TomeGetWarJournalEntryData|TomeGetWarJournalEntryData]].&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;unlocked&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || Whether the player has unlocked the entry.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Entry title.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Entry name. A placeholder text while the entry is locked.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;influenceId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Influence id of the entry; &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; while the entry is locked.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Locked entries are listed too; note that the field is &amp;lt;code&amp;gt;unlocked&amp;lt;/code&amp;gt; here, not &amp;lt;code&amp;gt;isUnlocked&amp;lt;/code&amp;gt; as elsewhere in the Tome.&lt;br /&gt;
* Entries whose &amp;lt;code&amp;gt;displayIndex&amp;lt;/code&amp;gt; (see [[API:TomeGetWarJournalEntryData|TomeGetWarJournalEntryData]]) is &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; are not listed.&lt;br /&gt;
* The argument check is shared with [[API:TomeIsWarJournalStorylineUnlocked|TomeIsWarJournalStorylineUnlocked]]: if the argument is missing or not a number, the &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message names that function.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
These are written to the UI log, and the function returns nothing.&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TomeGetWarJournalStorylineData&amp;#039;: %d is not a valid storyline id.&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TomeGetWarJournalStorylineData&amp;#039;: You have not yet unlocked storyline # %d.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_tomeofknowledge/source/tomewindow_warjournal.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local function CacheStorylineData( storyId )&lt;br /&gt;
    TomeWindow.WarJournal.StorylinesData[storyId] = TomeGetWarJournalStorylineData( storyId )&lt;br /&gt;
    ...&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TomeGetWarJournalAvailiableStorylines|TomeGetWarJournalAvailiableStorylines]]&lt;br /&gt;
* [[API:TomeGetWarJournalEntryData|TomeGetWarJournalEntryData]]&lt;br /&gt;
* [[API:TomeIsWarJournalStorylineUnlocked|TomeIsWarJournalStorylineUnlocked]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>