Inspect.Ability.List

From Riftui Wiki

Jump to: navigation, search

Returns the identifiers of current available abilities of the player. This includes passives, roles, "Toggle Auto Attack", and "Toggle Ranged Attack."

Contents

Signature

list = Inspect.Ability.List()

Parameters

None

Return Value

list (table) - The table of ability identifiers. The function will return nil if the list is not available.

ability_list = {
   ability_identifier = true,
   ability_b_identifier = true,
   ...
}

Example

local function MyAbilityList()
       local list = Inspect.Ability.List()
       -- Make sure that the return isn't nil. --
       if not list then return end

       -- Print out each Identifier --
       for v, k in pairs(list) do
             print(tostring(v))
       end
end
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox