<?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%3ATomeGetWarJournalEntryData</id>
	<title>API:TomeGetWarJournalEntryData - 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%3ATomeGetWarJournalEntryData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TomeGetWarJournalEntryData&amp;action=history"/>
	<updated>2026-10-17T04:19:13Z</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:TomeGetWarJournalEntryData&amp;diff=30825&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:TomeGetWarJournalEntryData&amp;diff=30825&amp;oldid=prev"/>
		<updated>2026-10-16T19:50:45Z</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 full data of an unlocked War Journal entry: story texts, activities with their tasks, and glyph activities.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
entryData = TomeGetWarJournalEntryData(entryId)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;entryId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Entry id, as in the &amp;lt;code&amp;gt;entries&amp;lt;/code&amp;gt; list of [[API:TomeGetWarJournalStorylineData|TomeGetWarJournalStorylineData]].&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;entryData : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – The entry&amp;#039;s data, or nothing if the id is invalid or the entry 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; || Entry id.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;storylineId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Id of the storyline the entry belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;storylineName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Storyline name (see Details).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;displayIndex&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Position of the entry within its storyline.&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.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;npcName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Name of the NPC of the entry.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;locationText&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Location text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;storyText&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || The story text.&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.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;zoneId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Zone of the entry.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;zoneAreaId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Zone area of the entry.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;activities&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of activities (see below).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;glyphActivities&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of glyph activities (see below).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each activity in &amp;lt;code&amp;gt;activities&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; || Activity id.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Activity type.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;typeName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Name of the activity type.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;zoneId&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zoneAreaId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Where the activity takes place.&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; || Activity name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Activity text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;tasks&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of tasks, each with &amp;lt;code&amp;gt;isComplete&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt;). The name of a task that is not complete is a placeholder and its text is empty.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each glyph activity in &amp;lt;code&amp;gt;glyphActivities&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; || Glyph activity 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; || Name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;glyphLines&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of glyph lines, each with &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;glyphs&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt;).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each glyph in &amp;lt;code&amp;gt;glyphLines[n].glyphs&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; || Glyph 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; || Glyph name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;tooltipText&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Tooltip text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isUnlocked&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || Whether the glyph is unlocked.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;textureName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || Name of the glyph&amp;#039;s texture.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;tooltipItems&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; lines for the tooltip. Missing when the client&amp;#039;s tooltip text table is not loaded.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Check with [[API:TomeIsWarJournalEntryUnlocked|TomeIsWarJournalEntryUnlocked]] first, as the stock UI does.&lt;br /&gt;
* An activity is only listed once the player&amp;#039;s progress flag for it is set. The same kind of flag, per task, gives each task&amp;#039;s &amp;lt;code&amp;gt;isComplete&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;storylineName&amp;lt;/code&amp;gt; is looked up in the storyline-name table with the &amp;#039;&amp;#039;&amp;#039;entry&amp;#039;&amp;#039;&amp;#039; id, not the storyline id, so it may not be the name of the entry&amp;#039;s storyline. Use the &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; from [[API:TomeGetWarJournalStorylineData|TomeGetWarJournalStorylineData]] for &amp;lt;code&amp;gt;storylineId&amp;lt;/code&amp;gt; instead.&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;TomeGetWarJournalEntryData&amp;#039;: %d is not a valid entry id.&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TomeGetWarJournalEntryData&amp;#039;: You have not yet unlocked entry # %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 entryData  = TomeGetWarJournalEntryData( entryId )&lt;br /&gt;
-- If we are showing an entry that has a glyph activity have that be selected first&lt;br /&gt;
-- Instead of the story&lt;br /&gt;
if( entryData and&lt;br /&gt;
    entryData.glyphActivities and&lt;br /&gt;
    entryData.glyphActivities[1] )&lt;br /&gt;
then&lt;br /&gt;
    glyphActivityId = entryData.glyphActivities[1].id&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The glyph display caches the result, from &amp;lt;code&amp;gt;easystem_glyphdisplay/source/glyphdisplay.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local entryData = TomeGetWarJournalEntryData( entryId )&lt;br /&gt;
if entryData ~= nil&lt;br /&gt;
then&lt;br /&gt;
    GlyphDisplay.cachedJournalEntries[entryId] = entryData&lt;br /&gt;
    return entryData&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TomeIsWarJournalEntryUnlocked|TomeIsWarJournalEntryUnlocked]]&lt;br /&gt;
* [[API:TomeGetWarJournalStorylineData|TomeGetWarJournalStorylineData]]&lt;br /&gt;
* [[API:TomeSetWarJournalEntryImage|TomeSetWarJournalEntryImage]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>