<?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%3ATomeGetTacticCounter</id>
	<title>API:TomeGetTacticCounter - 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%3ATomeGetTacticCounter"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TomeGetTacticCounter&amp;action=history"/>
	<updated>2026-10-17T22:25:40Z</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:TomeGetTacticCounter&amp;diff=30820&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:TomeGetTacticCounter&amp;diff=30820&amp;oldid=prev"/>
		<updated>2026-10-16T19:50:40Z</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 a Tome of Knowledge tactic counter: its name, the player&amp;#039;s progress, and the tactics it unlocks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
name, progress, rewards = TomeGetTacticCounter(counterId)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;counterId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Tactic counter id, for example the &amp;lt;code&amp;gt;rewardId&amp;lt;/code&amp;gt; of a Tome reward of type &amp;lt;code&amp;gt;GameData.Tome.REWARD_ABILITY_COUNTER&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing if the id is unknown. Otherwise:&lt;br /&gt;
;name : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Name of the tactic line; empty if the name table is not loaded.&lt;br /&gt;
;progress : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – The player&amp;#039;s current count for this counter.&lt;br /&gt;
;rewards : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Array of exactly 3 tables, each with &amp;lt;code&amp;gt;rewardId&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;, the tactic, for [[API:TomeGetTacticCounterRewardData|TomeGetTacticCounterRewardData]]) and &amp;lt;code&amp;gt;threshold&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;, the count needed).&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The id must match a counter exactly.&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_interactionwindow/source/interactiontometraining.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local tacticLineName, progress, rewardData = TomeGetTacticCounter( advanceData.requiredActionCounterID )&lt;br /&gt;
if (dependencyText == nil) and (progress &amp;lt; advanceData.requiredActionCounterCount)&lt;br /&gt;
then&lt;br /&gt;
    dependencyText = GetStringFormatFromTable(&amp;quot;TrainingStrings&amp;quot;, StringTables.Training.LABEL_REQUIRES_DEPENDENT_COUNT_X_Y_Z, { tacticLineName, towstring(progress), towstring(advanceData.requiredActionCounterCount) } )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_tomeofknowledge/source/tomewindow.lua&amp;lt;/code&amp;gt;, passing all three results to a tooltip builder:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BuildTacticCounterTooltip( TomeGetTacticCounter( rewardData.rewardId ) )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TomeGetTacticCounterRewardData|TomeGetTacticCounterRewardData]]&lt;br /&gt;
* [[API:TomeGetTacticRewardData|TomeGetTacticRewardData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>