quest_state_bits
Global of Kamidori Alchemy Meister: the cell G:0xf9c5f, of type int[2000], data-table, values bit0 posted, bit1 failed, bit2 cleared, bit3 settled (reported); 0xd = successful completion.
Runtime quest state. CHECKCONTRACT sets bit0 on posting (@0x1b9), bit1 on failure (@0x2b1/0x35d), bit2 on clear (@0x259); CHECKREWARD@0x27 runs RECEIPT for (state&9)==1 && state&6; RECEIPT@0x832 sets bit3. INFO2 draws posted/failed/cleared/settled badges from it.
OME’s registry gives it with high confidence, from investigation. The base mod kamidori-base exports the name, so Lua and an event’s fields can use it.
Scripts that use it
The game’s scripts whose instructions read, write or index (take as an array’s base) the cell, with how many of their operands do each, from OME’s script index.
| Script | Reads | Writes | Indexes |
|---|---|---|---|
INFO2 | 0 | 0 | 10 |
CHECKCONTRACT | 0 | 0 | 9 |
RECEIPT | 0 | 0 | 6 |
CHECKREWARD | 0 | 0 | 2 |