<?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%3ATomeGetTacticCounterRewardData</id>
	<title>API:TomeGetTacticCounterRewardData - 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%3ATomeGetTacticCounterRewardData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TomeGetTacticCounterRewardData&amp;action=history"/>
	<updated>2026-10-17T10:25:45Z</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:TomeGetTacticCounterRewardData&amp;diff=30821&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:TomeGetTacticCounterRewardData&amp;diff=30821&amp;oldid=prev"/>
		<updated>2026-10-16T19:50:41Z</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 unlocked by a Tome of Knowledge tactic counter, and whether the player has unlocked it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tacticData = TomeGetTacticCounterRewardData(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, as in the &amp;lt;code&amp;gt;rewards&amp;lt;/code&amp;gt; list from [[API:TomeGetTacticCounter|TomeGetTacticCounter]].&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;tacticData : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – An [[API:GetAbilityData#Ability data table|ability data table]] for the tactic, plus the field below. Nothing is returned if the id is unknown 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;unlocked&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || Whether the player has unlocked this tactic.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Unlike [[API:GetAbilityData|GetAbilityData]], the table has no &amp;lt;code&amp;gt;isActive&amp;lt;/code&amp;gt; field.&lt;br /&gt;
* No error is logged for an unknown id.&lt;br /&gt;
* Exactly one argument must be passed.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when the argument is missing or not a number.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_tomeofknowledge/source/tomewindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for index, reward in ipairs( rewards )&lt;br /&gt;
do&lt;br /&gt;
    local tactic = TomeGetTacticCounterRewardData( reward.rewardId )&lt;br /&gt;
    local tacticText = GetFormatStringFromTable( &amp;quot;Default&amp;quot;, StringTables.Default.TOOLTIP_X_REQUIRES_Y_FRAGMENTS, { tactic.name, reward.threshold } )&lt;br /&gt;
    local texture, x, y = GetIconData( tactic.iconNum )&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_interactionwindow/source/interactiontometraining.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local tacticData = TomeGetTacticCounterRewardData( advanceData.packageId )&lt;br /&gt;
if tacticData ~= nil&lt;br /&gt;
then&lt;br /&gt;
    return tacticData.unlocked and (progress &amp;gt;= advanceData.requiredActionCounterCount)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TomeGetTacticCounter|TomeGetTacticCounter]]&lt;br /&gt;
* [[API:GetAbilityData|GetAbilityData]]&lt;br /&gt;
* [[API:TomeGetTacticRewardData|TomeGetTacticRewardData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>