Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetDatabaseAbilityData

From RoR Wiki
Revision as of 19:43, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Ability functions
Version: WAR 1.4.8

Returns the data of an ability by id.

abilityData = GetDatabaseAbilityData(abilityId)

Arguments

abilityId
number – Id of the ability.

Returns

abilityData
table – An ability data table. Nothing is returned if there is no player object or the ability is not found.

Details

  • abilityId is converted to a 16-bit integer.
  • Unlike GetAbilityData, the result has no isActive field, and nothing is returned for an unknown id.
  • The stock UI never calls this function.

Errors

None besides the generic Invalid Parameters message when the argument is missing or not a number.

Example

A minimal example built from the signature:

local data = GetDatabaseAbilityData( abilityId )
if( data ~= nil ) then
    local texture, x, y = GetIconData( data.iconNum )
end

See also