benilla-re systems structs docs

s_castFailureKeyStrings

global · spell

Address
0x86faa0 · 4324 bytes, up to 0x870b83
Type
char[4324]
Meaning
Holds the 146 SPELL_FAILED_ keys, each padded to 4 bytes, from reason 0x91 up to reason 0
Confidence
verified, proof one
Finding
spell/failures#reason-key-switch

Finding: Reason key switch in spell: failures

0x6e23e0 maps a reason byte to its GlobalStrings key. Reason r from 0 to 0x90 returns the string r places below the top of a run of 146 strings, each padded to 4 bytes, that descends from 0x870b64 (0, SPELL_FAILED_AFFECTING_COMBAT) to 0x86fab8 (0x90, SPELL_FAILED_MIN_SKILL); any larger byte returns the run's lowest string, 0x86faa0, SPELL_FAILED_UNKNOWN. Every key is SPELL_FAILED_ and a name; the 146 are distinct. Keys this topic relies on: 0x17 DONT_REPORT, 0x23 INTERRUPTED, 0x24 INTERRUPTED_COMBAT, 0x3c NOT_READY, 0x4d NO_POWER, 0x61 SPELL_IN_PROGRESS, 0x84 PROSPECT_NEED_MORE.

The derivation is in the doc.