<?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%3AGameData.Player.GetAdvanceData</id>
	<title>API:GameData.Player.GetAdvanceData - 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%3AGameData.Player.GetAdvanceData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GameData.Player.GetAdvanceData&amp;action=history"/>
	<updated>2026-10-17T15:22:17Z</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:GameData.Player.GetAdvanceData&amp;diff=30314&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:GameData.Player.GetAdvanceData&amp;diff=30314&amp;oldid=prev"/>
		<updated>2026-10-16T19:42:37Z</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=Career}}&lt;br /&gt;
Returns the player&amp;#039;s career advances (abilities, mastery points, renown and tome rewards) with their costs, requirements and purchase counts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
advances = GameData.Player.GetAdvanceData()&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;
;advances : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Array of advance tables, indexed from 1.&lt;br /&gt;
&lt;br /&gt;
Each advance 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;advanceName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Name of the advance. The stock UI shows it for advances without &amp;lt;code&amp;gt;abilityInfo&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;advanceType&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Type of the advance. Advances of type 2 have an &amp;lt;code&amp;gt;abilityInfo&amp;lt;/code&amp;gt; table.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;advanceValue&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;advanceID&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Advance id. The stock UI looks up its description with &amp;lt;code&amp;gt;GetStringFromTable(&amp;quot;PackageDescriptions&amp;quot;, advanceID)&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;advanceIcon&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Icon id for [[API:GetIconData|GetIconData]].&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Career advance category, 0–19. Compared with &amp;lt;code&amp;gt;GameData.CareerCategory&amp;lt;/code&amp;gt; values.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;tier&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Tier inside the category, 0–4.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;packageId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Package id. Passed to [[API:BuyCareerPackage|BuyCareerPackage]] together with &amp;lt;code&amp;gt;tier&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;timesPurchased&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || How many times the advance has been bought.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;maximumPurchaseCount&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;minimumRank&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Required character rank. The stock UI compares it with &amp;lt;code&amp;gt;GameData.Player.level&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;minimumRenown&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Required renown rank. The stock UI compares it with &amp;lt;code&amp;gt;GameData.Player.Renown.curRank&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;minimumCategoryPoints&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;cashCost&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Price in money. The stock UI shows it with &amp;lt;code&amp;gt;MoneyFrame.FormatMoney&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;pointCost&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Point cost. The stock renown training window shows it as the renown point cost.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;requiredTomeEntryID&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;requiredActionCounterID&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;requiredActionCounterCount&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;dependencies&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Table of number keys to number values. The stock UI reads each pair as a required package and the amount needed (&amp;lt;code&amp;gt;InteractionUtils.GetDependentPackage&amp;lt;/code&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;abilityInfo&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Only for advances of type 2. An [[API:GetAbilityData#Ability data table|ability data table]] for the ability the advance grants, plus the field &amp;lt;code&amp;gt;isPurchased&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt;), which the stock UI treats as &amp;quot;the player already has this ability&amp;quot; (&amp;lt;code&amp;gt;InteractionUtils.HasAbilityFilter&amp;lt;/code&amp;gt;).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Advances are listed category by category (0 to 19), and inside each category tier by tier (0 to 4).&lt;br /&gt;
* &amp;lt;code&amp;gt;isPurchased&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the client finds the ability among the player&amp;#039;s abilities.&lt;br /&gt;
* &amp;lt;code&amp;gt;abilityInfo&amp;lt;/code&amp;gt; does not contain the &amp;lt;code&amp;gt;isActive&amp;lt;/code&amp;gt; field that [[API:GetAbilityData|GetAbilityData]] adds.&lt;br /&gt;
* A new table is built on every call. The stock training windows call it when they refresh and keep the result.&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;ea_interactionwindow/source/interactioncoretraining.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
EA_Window_InteractionCoreTraining.advanceData = GameData.Player.GetAdvanceData()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Choosing the label text, from the same file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if (advanceData.abilityInfo == nil)&lt;br /&gt;
then&lt;br /&gt;
    LabelSetText( labelFrame, GetStringFormatFromTable(&amp;quot;TrainingStrings&amp;quot;, StringTables.Training.LABEL_CORE_TRAINING_ABILITY_NAME_FORMAT, {advanceData.advanceName}) )&lt;br /&gt;
else&lt;br /&gt;
    LabelSetText( labelFrame, GetStringFormatFromTable(&amp;quot;TrainingStrings&amp;quot;, StringTables.Training.LABEL_CORE_TRAINING_ABILITY_NAME_FORMAT, {advanceData.abilityInfo.name}) )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:BuyCareerPackage|BuyCareerPackage]]&lt;br /&gt;
* [[API:GameData.Player.GetAdvancePointsAvailable|GameData.Player.GetAdvancePointsAvailable]]&lt;br /&gt;
* [[API:GameData.Player.GetAdvancePointsSpent|GameData.Player.GetAdvancePointsSpent]]&lt;br /&gt;
* [[API:GetAbilityData|GetAbilityData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>