Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:TomeGetCardList

From RoR Wiki
Revision as of 19:50, 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 · Tome functions
Version: WAR 1.4.8

Returns the Tome of Knowledge cards the player has unlocked.

cards = TomeGetCardList()

Arguments

None.

Returns

cards
table – Array of card tables, indexed from 1. Empty if no card is unlocked.

Each card table:

Key Type Meaning
cardId number Card id. Pass it to TomeGetCardData for the full data.
valueName wstring Name of the card's value; empty if the name table is not loaded.
suitName wstring Name of the card's suit; empty if the name table is not loaded.
iconNum number Icon id for GetIconData.

Details

  • Locked cards are left out.
  • The list is in the client's card order, not sorted by name.

Errors

None.

Example

From default/ea_tomeofknowledge/source/tomewindow_rewards.lua:

local cardList = TomeGetCardList()
...
local entryCount = 0
for index, entryData in ipairs( cardList ) do
    entryCount = entryCount + 1
    ...

See also