<?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%3AGetAbilityTable</id>
	<title>API:GetAbilityTable - 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%3AGetAbilityTable"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetAbilityTable&amp;action=history"/>
	<updated>2026-10-18T14:42:04Z</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:GetAbilityTable&amp;diff=30327&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:GetAbilityTable&amp;diff=30327&amp;oldid=prev"/>
		<updated>2026-10-16T19:42:49Z</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 all abilities of one type that the player knows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
abilities = GetAbilityTable(abilityType)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;abilityType : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Ability type, a &amp;lt;code&amp;gt;GameData.AbilityType&amp;lt;/code&amp;gt; value from 1 to 7.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;abilities : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Table keyed by ability id. Each value is an [[API:GetAbilityData#Ability data table|ability data table]]. It is not a sequence: use &amp;lt;code&amp;gt;pairs&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* &amp;lt;code&amp;gt;abilityType&amp;lt;/code&amp;gt; is converted to an integer.&lt;br /&gt;
* Type 7 returns the guild&amp;#039;s tactics instead of the player&amp;#039;s abilities.&lt;br /&gt;
* Type 6 does not compare &amp;lt;code&amp;gt;abilityType&amp;lt;/code&amp;gt;; it selects abilities by a separate category the client stores for each known ability. For types 1–5 the result holds the known abilities whose &amp;lt;code&amp;gt;abilityType&amp;lt;/code&amp;gt; equals the argument.&lt;br /&gt;
* Any other value, or a missing ability list, makes the function return nothing. The stock UI checks the result for &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If there is no player object, or the Lua state is not available, the function returns nothing.&lt;br /&gt;
* The stock UI caches every type in &amp;lt;code&amp;gt;Player.RefreshAbilityLookups()&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;easystem_utils/source/player.lua&amp;lt;/code&amp;gt;). Its comment asks addons to use &amp;lt;code&amp;gt;Player.GetAbilityTable&amp;lt;/code&amp;gt;, which returns the cached table.&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/player.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for i = GameData.AbilityType.FIRST, GameData.AbilityType.NUM_TYPES do&lt;br /&gt;
    local abilityTable = GetAbilityTable (i)&lt;br /&gt;
    if (nil ~= abilityTable) then&lt;br /&gt;
        AbilityLookups[i] = { lookup = abilityTable }&lt;br /&gt;
    else&lt;br /&gt;
        DEBUG (L&amp;quot;Unable to retrieve ability table: &amp;quot;..i);&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Guild tactics, from &amp;lt;code&amp;gt;ea_guildwindow/source/guildtacticslist.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GuildTacticsList.tacticsTable = GetAbilityTable (GameData.AbilityType.GUILD)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetAbilityData|GetAbilityData]]&lt;br /&gt;
* [[API:GetActiveTactics|GetActiveTactics]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>