<?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%3ATomeGetAchievementsEntryData</id>
	<title>API:TomeGetAchievementsEntryData - 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%3ATomeGetAchievementsEntryData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TomeGetAchievementsEntryData&amp;action=history"/>
	<updated>2026-10-18T06:59:00Z</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:TomeGetAchievementsEntryData&amp;diff=30795&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:TomeGetAchievementsEntryData&amp;diff=30795&amp;oldid=prev"/>
		<updated>2026-10-16T19:50:14Z</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 one unlocked achievement entry of the Tome of Knowledge, with the type and subtype it belongs to.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
entryData = TomeGetAchievementsEntryData(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; – Achievement entry id.&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;typeId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Id of the achievement type of the entry&amp;#039;s subtype; &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; if the subtype is not found.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;subTypeId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Id of the entry&amp;#039;s subtype. Pass it to [[API:TomeGetAchievementsSubTypeData|TomeGetAchievementsSubTypeData]].&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;desc&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Entry description.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;rewards&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of reward tables with &amp;lt;code&amp;gt;rewardType&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;rewardId&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rewardDesc&amp;lt;/code&amp;gt;, built the same way as in [[API:TomeGetAchievementsSubTypeData|TomeGetAchievementsSubTypeData]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Unlike the entries in [[API:TomeGetAchievementsSubTypeData|TomeGetAchievementsSubTypeData]], this table has no &amp;lt;code&amp;gt;isUnlocked&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;unlockEventId&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cardId&amp;lt;/code&amp;gt; fields.&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;TomeGetAchievementsEntryData&amp;#039;: %d is not a valid Achievements Entry id.&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TomeGetAchievementsEntryData&amp;#039;: You have not yet unlocked any Entry # %d.&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_achievements.lua&amp;lt;/code&amp;gt;, opening the subtype page of an entry:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local entryData = TomeGetAchievementsEntryData( entryId )&lt;br /&gt;
if( entryData ) then&lt;br /&gt;
    TomeWindow.ShowAchievementsSubType( entryData.subTypeId )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TomeIsAchievementsEntryUnlocked|TomeIsAchievementsEntryUnlocked]]&lt;br /&gt;
* [[API:TomeGetAchievementsSubTypeData|TomeGetAchievementsSubTypeData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>