current_stage_id
Global of Kamidori Alchemy Meister: the cell G:0x378b, of type int, index-pointer, values STINIT2 stage id 1..977 (0 = derive from current_labyrinth_id/current_floor_no).
FIELD@0x0 reads stage_labyrinth_ids/stage_floor_numbers[stage] into current_labyrinth_id/current_floor_no; when zero FIELD@0x22..0x76 scans all 1000 stages for the matching (labyrinth, floor) and stores the hit back. FIELD@0x7b logs it as 'Field StageNo='. Index for every per-stage array (stage_revealed_tile_bitmask, stage_occupation_percent, ...).
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 |
|---|---|---|---|
$3$STINIT | 196 | 0 | 0 |
$1$STINIT | 192 | 0 | 0 |
$2$STINIT | 183 | 0 | 0 |
STINIT | 181 | 0 | 0 |
STAGEROUND | 161 | 0 | 0 |
STAGECLOSE | 145 | 0 | 0 |
FIELD | 92 | 1 | 0 |
STAGEREADY | 48 | 0 | 0 |
SETSTAGEFLAG | 45 | 0 | 0 |
STAGECLEAR | 43 | 0 | 0 |
AIM | 22 | 0 | 0 |
$2$STAGECLOSE | 20 | 0 | 0 |
$1$SETSTAGEFLAG | 13 | 0 | 0 |
SELSTAGE | 8 | 3 | 0 |
INFO3 | 7 | 3 | 0 |
$3$STAGECLOSE | 8 | 0 | 0 |
$3$SC2820 | 0 | 5 | 0 |
$3$SC2830 | 0 | 5 | 0 |
$3$SC2840 | 0 | 5 | 0 |
$3$SC2850 | 0 | 5 | 0 |
$3$SC2860 | 0 | 5 | 0 |
$3$SC2870 | 0 | 5 | 0 |
DRAWMINIMAP | 5 | 0 | 0 |
DRAWCHP | 4 | 0 | 0 |
DRAWMAP | 4 | 0 | 0 |
ORGANIZE | 4 | 0 | 0 |
$3$SETSTAGEFLAG | 3 | 0 | 0 |
ARENA | 1 | 2 | 0 |
CALCOCC | 3 | 0 | 0 |
DRAWOBJ | 3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