benilla-re systems structs docs

s_keyLockedWithItem

global · ui

Address
0x854988 · 17 bytes, up to 0x854998
Type
const char[17]
Meaning
Holds the global string key LOCKED_WITH_ITEM of the key item line
Confidence
verified, proof one
Finding
ui/tooltipobject#the-game-object-lock-lines

Finding: The game object lock lines in ui: Tooltips of world objects

An object with the locked flag (GAMEOBJECT_FLAGS bit 1) adds LOCKED, red when the player has no way to meet the lock, green when the opener is a key item or no skill spell, and the difficulty colour of a known skill spell. One more line follows from the first slot of the object's lock row, when that slot's action is valid for the object's state. A key slot gives LOCKED_WITH_ITEM with the key item's name, in white. A skill slot gives LOCKED_WITH_SPELL_KNOWN with the lock type's name in the difficulty colour when the player knows a spell that opens that lock type; else LOCKED_WITH_SPELL in red, but only for an object not flagged locked.

The derivation is in the doc.