API:TomeIsNoteworthyPersonsEntryUnlocked
From RoR Wiki
UI Lua API · Tome functions
Version: WAR 1.4.8
Returns whether the player has unlocked a Noteworthy Persons entry.
unlocked = TomeIsNoteworthyPersonsEntryUnlocked(entryId)
Arguments
- entryId
number– Entry id.
Returns
- unlocked
boolean–trueif the entry is unlocked;falseif it is locked or the id is unknown.
Details
- Unknown ids return
falsewithout an error. - The same flag is reported as
isUnlockedin theentrieslist of TomeGetNoteworthyPersonsZoneData.
Errors
None besides the Invalid Parameters argument check.
Example
From ea_tomeofknowledge/source/tomewindow_noteworthypersons.lua:
function TomeWindow.ShowNoteworthyPersonsEntry( entryId )
if( TomeIsNoteworthyPersonsEntryUnlocked( entryId ) ~= true ) then
return
end
TomeWindow.UpdateNoteworthyPersonsEntry( entryId )
...
end
