<?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%3AGetActiveObjectivesData</id>
	<title>API:GetActiveObjectivesData - 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%3AGetActiveObjectivesData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetActiveObjectivesData&amp;action=history"/>
	<updated>2026-10-18T19:24:22Z</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:GetActiveObjectivesData&amp;diff=30333&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:GetActiveObjectivesData&amp;diff=30333&amp;oldid=prev"/>
		<updated>2026-10-16T19:42:54Z</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=Game}}&lt;br /&gt;
Returns the objectives the player is currently tracking: public quests, battlefield objectives, keeps and city objectives.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
objectives = GetActiveObjectivesData()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;objectives : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Array of objective tables, indexed from 1.&lt;br /&gt;
&lt;br /&gt;
Each objective table has these fields:&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; || Objective id.&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; || Objective name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;controllingRealm&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Realm that holds the objective.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;curControlPoints&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || — (may be negative)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isCapturePoint&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;difficulty&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Difficulty, used by the stock UI for the tracker&amp;#039;s difficulty text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isBattlefieldObjective&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isKeep&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isFortress&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isPublicQuest&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when none of the other type flags are set.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isCityBoss&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;optedOutForLoot&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;forcedOutForLoot&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Quest&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of the objective&amp;#039;s quest stages, indexed from 1, at most 5 entries. See below.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each entry of &amp;lt;code&amp;gt;Quest&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;influenceType&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Same value for every entry of one objective.&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; || Stage 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; || Stage description.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;complete&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;timerName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;timerValue&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;timerState&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isTimeToComplete&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;availableRealm&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || —&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;conditions&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of conditions, indexed from 1. Each has &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;curCounter&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;maxCounter&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;failureCondition&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt;).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* &amp;lt;code&amp;gt;isBattlefieldObjective&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isKeep&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isFortress&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;isCityBoss&amp;lt;/code&amp;gt; come from separate bits of one type value. &amp;lt;code&amp;gt;isPublicQuest&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; only when that value is 0.&lt;br /&gt;
* A new table is built on every call. The stock UI stores it in &amp;lt;code&amp;gt;DataUtils.activeObjectivesData&amp;lt;/code&amp;gt; and refreshes it from the objective tracker event handlers.&lt;br /&gt;
* Unlike most data getters, this function does not check for a player object.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;easystem_utils/source/datautils.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DataUtils.activeObjectivesData  = GetActiveObjectivesData()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the difficulty, from &amp;lt;code&amp;gt;ea_objectivetrackers/source/citytrackerwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local difficultyText = TrackerUtils.GetDifficultyText( objectiveData.difficulty )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetAreaData|GetAreaData]]&lt;br /&gt;
* [[API:GetQuestData|GetQuestData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>