stage_availability_flags
Global of Kamidori Alchemy Meister: the cell G:0x429d, of type int[1000], story-flag, values bit0 = listed, bit1 = currently selectable.
CHECKSTAGE@0x3c sets bits 0 and 1 for every stage with a positive labyrinth id whose required story flags are all set, no forbidden flag is set, and whose prerequisite (labyrinth, floor) stage is cleared; otherwise CHECKSTAGE@0x57 clears bit1. SELSTAGE@0x48e lists bit0 stages of the current labyrinth; SELSTAGE@0x651 uses bit1.
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 |
|---|---|---|---|
CHECKSTAGE | 0 | 0 | 3 |
SELSTAGE | 0 | 0 | 2 |