object_type_state_mode
Global of Kamidori Alchemy Meister: the cell G:0x2a37ce, of type int[100], data-table, values 1 = sprite row from persistent owner/open state; 2 = overlay bit cleared when exhausted; 3 = overlay bit set when exhausted (gather/dig points).
DRAWOBJ@0xb9 (mode 1 sprite row), SETOBJ@0x1b0/0x1d4 and FIELD@0x7581/0x75a5 (bit2 handling), FIELD@0x829 seeds persistent state for mode 1.
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.
Record tables
It is a field of the table object_type, as object_type.id.state_mode.
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 |
|---|---|---|---|
OBINIT | 0 | 36 | 0 |
FIELD | 0 | 0 | 3 |
$1$OBINIT | 0 | 2 | 0 |
SETOBJ | 0 | 0 | 2 |
$2$OBINIT | 0 | 1 | 0 |
DRAWOBJ | 0 | 0 | 1 |
STATUS | 0 | 0 | 1 |