Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:TomeIsWarJournalStorylineUnlocked

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 whether a War Journal storyline is unlocked, that is, whether the player has unlocked at least one of its entries.

unlocked = TomeIsWarJournalStorylineUnlocked(storylineId)

Arguments

storylineId
number – Storyline id.

Returns

unlocked
boolean – true if at least one entry of the storyline is unlocked; false otherwise, or if the id is unknown.

Details

Errors

None besides the Invalid Parameters argument check.

Example

From ea_tomeofknowledge/source/tomewindow_warjournal.lua:

-- Is the storyline unlocked?
if( TomeIsWarJournalStorylineUnlocked(id) ~= true ) then
    return
end

See also