stage_object_persistent_state
Global of Kamidori Alchemy Meister: the cell G:0x43655, of type int[1000x50], unknown, values per stage per slot: owner faction for bases/gates (sprite row), opened state for doors.
Seeded from stage_object_primary_param on first visit (FIELD@0x83e); DRAWOBJ@0xce uses it as the sprite row for draw_class-1 types; FIELD victory/defeat checks compare it to 1 (player).
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 |
|---|---|---|---|
STAGEROUND | 0 | 0 | 48 |
STAGECLOSE | 0 | 0 | 41 |
FIELD | 0 | 0 | 26 |
SETSTAGEFLAG | 0 | 0 | 3 |
CALCOCC | 0 | 0 | 2 |
SETOCC | 0 | 0 | 2 |
$3$SETSTAGEFLAG | 0 | 0 | 1 |
$3$STAGECLOSE | 0 | 0 | 1 |
$3$STAGEROUND | 0 | 0 | 1 |
DRAWOBJ | 0 | 0 | 1 |
FELLOW | 0 | 0 | 1 |
RTN_M008 | 0 | 0 | 1 |
RTN_M009 | 0 | 0 | 1 |
RTN_M015 | 0 | 0 | 1 |
SELBOMB | 0 | 0 | 1 |
STATUS | 0 | 0 | 1 |