<?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%3AGetGuildAdvancementData</id>
	<title>API:GetGuildAdvancementData - 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%3AGetGuildAdvancementData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetGuildAdvancementData&amp;action=history"/>
	<updated>2026-10-17T22:25:41Z</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:GetGuildAdvancementData&amp;diff=30393&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:GetGuildAdvancementData&amp;diff=30393&amp;oldid=prev"/>
		<updated>2026-10-16T19:43:50Z</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=Guild}}&lt;br /&gt;
Returns the player&amp;#039;s guild advancement: tactic points, unlocked standards, posts and bearers, and the list of guild tactics.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
data = GetGuildAdvancementData()&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;
;data : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – A table with named fields and an array part, see below.&lt;br /&gt;
&lt;br /&gt;
Named 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;abilityPoints&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;numberBannersUnlocked&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Number of guild standards unlocked.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;numberPolesUnlocked&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Number of banner posts unlocked. The stock UI fills its post combo box from 1 to this value.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;numberStandardBearersUnlocked&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Maximum number of standard bearers.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Array part, indexed from 1, one table per guild tactic:&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;abilityID&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Ability id of the tactic.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;prereqAbilityID&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Ability id of the prerequisite tactic.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;guildRankPurchasedAt&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Guild rank at which the tactic was bought; the stock UI treats values above 0 as bought.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isUpgraded&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || –&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Read the array part with &amp;lt;code&amp;gt;ipairs&amp;lt;/code&amp;gt; and the counts by name; both live in the same table.&lt;br /&gt;
* &amp;lt;code&amp;gt;isUpgraded&amp;lt;/code&amp;gt; is a number, not a boolean.&lt;br /&gt;
* If there is no player object, or the Lua state is not available, the function returns nothing.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Reading the tactic list, from &amp;lt;code&amp;gt;default/ea_guildwindow/source/guildtacticslist.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local guildAdvancementData = GetGuildAdvancementData()&lt;br /&gt;
&lt;br /&gt;
if ( guildAdvancementData ~=nil) then&lt;br /&gt;
    for key, value in ipairs( guildAdvancementData ) do&lt;br /&gt;
        if (value.abilityID &amp;gt; 0) then&lt;br /&gt;
            GuildTacticsList.abilityListData[key] = {}&lt;br /&gt;
            GuildTacticsList.abilityListData[key].abilityID = value.abilityID&lt;br /&gt;
            GuildTacticsList.abilityListData[key].prereqAbilityID = value.prereqAbilityID&lt;br /&gt;
            GuildTacticsList.abilityListData[key].guildRankPurchasedAt = value.guildRankPurchasedAt&lt;br /&gt;
            ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reading a count, from &amp;lt;code&amp;gt;default/ea_guildwindow/source/guildwindowtabbanner.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for postNumber = 2, GuildAdvancementData.numberPolesUnlocked do&lt;br /&gt;
    ComboBoxAddMenuItem( &amp;quot;GWRewardsBannerPostCombo&amp;quot;, GetFormatStringFromTable( &amp;quot;guildstrings&amp;quot;, StringTables.Guild.TEXT_POST_X, {postNumber} ) )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GuildGetRewards|GuildGetRewards]]&lt;br /&gt;
* [[API:GetBannerConfigurationData|GetBannerConfigurationData]]&lt;br /&gt;
* [[API:GetGuildTacticsRespecCost|GetGuildTacticsRespecCost]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>