Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:TomeGetOldWorldArmoryTierTOC

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 Old World Armory progress per tier, as shown by the progress bars of the Tome of Knowledge armory page.

tiers = TomeGetOldWorldArmoryTierTOC()

Arguments

None.

Returns

tiers
table – Array of exactly 4 tables, one per tier (index 1 = tier 1).

Each tier table:

Key Type Meaning
numFound number Number of the tier's armory entries that pass the same completion test as isComplete in TomeGetOldWorldArmoryTOC.
total number Number of armory entries of the tier.

Details

Errors

None.

Example

From default/ea_tomeofknowledge/source/tomewindow_oldworldarmory_sigils.lua:

local tierTOCData = TomeGetOldWorldArmoryTierTOC()
for tierIndex, tierSetData in ipairs( tierTOCData )
do
    local tierWindow = PARENT_WINDOW.."Tier"..tierIndex
    LabelSetText( tierWindow.."Name", GetStringFormat( StringTables.Default.LABEL_TIER_X, { tierIndex } ) )
    StatusBarSetMaximumValue( tierWindow.."ProgressBar", tierSetData.total )
    StatusBarSetCurrentValue( tierWindow.."ProgressBar", tierSetData.numFound )
end

See also