<?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%3ATomeGetTacticRewardData</id>
	<title>API:TomeGetTacticRewardData - 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%3ATomeGetTacticRewardData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TomeGetTacticRewardData&amp;action=history"/>
	<updated>2026-10-17T04:53:04Z</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:TomeGetTacticRewardData&amp;diff=30822&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:TomeGetTacticRewardData&amp;diff=30822&amp;oldid=prev"/>
		<updated>2026-10-16T19:50:42Z</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 tactic behind a Tome of Knowledge tactic reward, and where in the Tome it is unlocked.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tacticData = TomeGetTacticRewardData(rewardId)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;rewardId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Reward id: the &amp;lt;code&amp;gt;rewardId&amp;lt;/code&amp;gt; of a reward with type &amp;lt;code&amp;gt;GameData.Tome.REWARD_ABILITY&amp;lt;/code&amp;gt;, or of an entry from [[API:TomeGetTacticRewardsList|TomeGetTacticRewardsList]].&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;tacticData : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Always a table (possibly empty) when the argument is a number.&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;rewardId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || The reward id that was passed in.&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 of the tactic. If no name is available, &amp;lt;code&amp;gt;Tactic #&amp;lt;/code&amp;gt; followed by a number.&lt;br /&gt;
|-&lt;br /&gt;
| ability fields || various || The tactic&amp;#039;s ability data, in the same layout as other ability tables (for example &amp;lt;code&amp;gt;iconNum&amp;lt;/code&amp;gt;, which the stock UI reads).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;unlockInfo&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Where the reward is unlocked: &amp;lt;code&amp;gt;section&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;entry&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;), &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt;), as in [[API:TomeGetItemRewardData|TomeGetItemRewardData]]. Empty when the reward has no unlocking entry.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* When there is no local player, the table stays empty.&lt;br /&gt;
* If the id is not a valid tactic reward, an error is logged and an empty table is returned. The error message carries the name &amp;lt;code&amp;gt;TomeGetPlayerTacticRewardData&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
These are written to the UI log; the call returns normally.&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TomeGetPlayerTacticRewardData&amp;#039;: %d is not a valid tactic reward id.&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.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local tacticData = TomeGetTacticRewardData( rewardData.rewardId )&lt;br /&gt;
iconNum = tacticData.iconNum&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TomeGetTacticRewardsList|TomeGetTacticRewardsList]]&lt;br /&gt;
* [[API:TomeGetItemRewardData|TomeGetItemRewardData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>