Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:TomeIsPlayerTitleUnlocked

From RoR Wiki

UI Lua API · Tome functions
Version: WAR 1.4.8

Returns whether the player has unlocked a title.

unlocked = TomeIsPlayerTitleUnlocked(titleId)

Arguments

titleId
number – Title id.

Returns

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

Details

Errors

None besides the Invalid Parameters argument check.

Example

A minimal example built from the signature:

if( TomeIsPlayerTitleUnlocked( titleId ) ) then
    TomeSetActivePlayerTitle( titleId )
end

See also