<?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%3ATomeGetSigilEntry</id>
	<title>API:TomeGetSigilEntry - 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%3ATomeGetSigilEntry"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TomeGetSigilEntry&amp;action=history"/>
	<updated>2026-10-17T15:22:34Z</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:TomeGetSigilEntry&amp;diff=30818&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:TomeGetSigilEntry&amp;diff=30818&amp;oldid=prev"/>
		<updated>2026-10-16T19:50:38Z</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 Tome of Knowledge page of a sigil: its texts and its fragments with their tasks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sigilData = TomeGetSigilEntry(sigilEntryId)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;sigilEntryId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Sigil entry id, as in [[API:TomeGetSigilTOC|TomeGetSigilTOC]]. Only the low 16 bits are used.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;sigilData : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – The sigil&amp;#039;s data, or nothing if the id is invalid or the player is not in the world.&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; || Sigil entry id.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;fullname&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Full name of the sigil.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Description.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;fragmentsTitle&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Heading of the fragment list.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;fragmentsDescription&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Text of the fragment list.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;fragments&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of fragment tables (see below).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each fragment table in &amp;lt;code&amp;gt;fragments&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; || Fragment id.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Position of the fragment within the sigil.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;numTasks&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Number of tasks of the fragment.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;iconNum&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Icon id for [[API:GetIconData|GetIconData]].&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 player has unlocked the fragment.&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; || Fragment name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;taskDescription&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Text shown above the task list.&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 task tables with &amp;lt;code&amp;gt;isCompleted&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;), &amp;lt;code&amp;gt;counterValue&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;counterMax&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;; both &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; for a task without a counter).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Texts come from the client&amp;#039;s string tables; they are empty wide strings if a table is not loaded.&lt;br /&gt;
* Exactly one argument must be passed.&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;TomeGetSigilEntry&amp;#039;: %d is not a valid entry id.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_tomeofknowledge/source/tomewindow_sigils.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local sigilData = TomeGetSigilEntry( sigilEntryId )&lt;br /&gt;
if( not sigilData or not sigilData.id )&lt;br /&gt;
...&lt;br /&gt;
LabelSetText(PARENT_WINDOW..&amp;quot;SigilTitle&amp;quot;, sigilData.fullname )&lt;br /&gt;
LabelSetText(PARENT_WINDOW..&amp;quot;SigilDesc&amp;quot;,  sigilData.description )&lt;br /&gt;
LabelSetText(PARENT_WINDOW..&amp;quot;FragmentsTitle&amp;quot;, sigilData.fragmentsTitle )&lt;br /&gt;
LabelSetText(PARENT_WINDOW..&amp;quot;FragmentsDesc&amp;quot;,  sigilData.fragmentsDescription )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the same file, the task list of a fragment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for index, task in ipairs( fragment.tasks )&lt;br /&gt;
do&lt;br /&gt;
    ...&lt;br /&gt;
    local taskText = task.name&lt;br /&gt;
    if( task.counterMax &amp;gt; 0 )&lt;br /&gt;
    then&lt;br /&gt;
        taskText = GetStringFormat( StringTables.Default.LABEL_SIGIL_FRAGMENT_TASKNAME_AND_COUNTER, {taskText, task.counterValue, task.counterMax} )&lt;br /&gt;
    end&lt;br /&gt;
    ...&lt;br /&gt;
    ButtonSetPressedFlag( taskWindowName..&amp;quot;CompletedBtn&amp;quot;, task.isCompleted )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TomeGetSigilTOC|TomeGetSigilTOC]]&lt;br /&gt;
* [[API:TomeGetSigilDisplayInfo|TomeGetSigilDisplayInfo]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>