world_area_state_flags
Global of Kamidori Alchemy Meister: the cell G:0x3613, of type int[100], counter, values bit0 = discovered (listed/drawn, name shown); bit1 = currently enterable. AMINIT keeps bit0 then sets the cell to 3 while the area's story-flag condition holds.
AMINIT@0x1d masks every cell to bit0 then writes 3 per area when its flag test passes. ALLMAP@0xd36 lists areas with bit0 (and x!=0); ALLMAP@0x11e7 greys markers without bit1; SELSTAGE@0xa68 refuses entry (error SE) without bit1; SELSTAGE@0x611 bit1 gates the per-area event scan; INFO3@0x1af3 / INFO5@0x1053 grey undiscovered names. FIELD@0x299 sets bit0 for marker-less areas on entry; ALLMAP@0x49 (render-only path used by SHOWALLMAP) clears the shown area so it can be drawn as a 'new' highlight.
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 |
|---|---|---|---|
AMINIT | 0 | 26 | 2 |
$3$AMINIT | 0 | 5 | 0 |
ALLMAP | 0 | 0 | 4 |
INFO3 | 0 | 0 | 3 |
SELSTAGE | 0 | 0 | 3 |
$1$AMINIT | 0 | 2 | 0 |
INFO5 | 0 | 0 | 2 |
FIELD | 0 | 0 | 1 |
TOWN | 1 | 0 | 0 |