Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:TomeIsWarJournalEntryUnlocked

From RoR Wiki

UI Lua API · Tome functions
Version: WAR 1.4.8

Returns whether the player has unlocked a War Journal entry.

unlocked = TomeIsWarJournalEntryUnlocked(entryId)

Arguments

entryId
number – Entry id.

Returns

unlocked
boolean – true if the entry is unlocked; false if it is locked or the id is unknown.

Details

Errors

None besides the Invalid Parameters argument check.

Example

From ea_tomeofknowledge/source/tomewindow_warjournal.lua:

function TomeWindow.OnShowWarJournalEntry( entryId )
    -- Is the Entry unlocked?
    if( TomeIsWarJournalEntryUnlocked(entryId) ~= true ) then
        return
    end

    local entryData  = TomeGetWarJournalEntryData( entryId )
    ...
end

See also