current_floor_no
Global of Kamidori Alchemy Meister: the cell G:0x428f, of type int, index-pointer, values floor number within the labyrinth: 1..45 main floors, 11..16 side/companion floors; for labyrinth -1: 1 / 11..77 battle-map ids.
Second MPINIT selector (MPINIT@0x1d ...). FIELD@0x1a sets it from stage_floor_numbers and logs it as 'FloorNo=' (FIELD@0x87). SELSTAGE@0x735 writes it before running the SCJUMP event chain for event-entry stages.
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 |
|---|---|---|---|
SCJUMP | 897 | 0 | 0 |
MPINIT | 145 | 0 | 0 |
STAGEREADY | 107 | 0 | 0 |
$1$SCJUMP | 83 | 0 | 0 |
STAGEROUND | 59 | 0 | 0 |
STAGECLOSE | 57 | 0 | 0 |
$3$SCJUMP | 47 | 0 | 0 |
$2$SCJUMP | 30 | 0 | 0 |
SETSTAGEFLAG | 24 | 0 | 0 |
$3$MPINIT | 14 | 0 | 0 |
$1$MPINIT | 11 | 0 | 0 |
$3$STAGECLOSE | 11 | 0 | 0 |
$3$SETSTAGEFLAG | 9 | 0 | 0 |
$3$STAGEROUND | 9 | 0 | 0 |
$2$STAGEREADY | 5 | 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 |
FIELD | 3 | 1 | 0 |
$1$STAGEREADY | 3 | 0 | 0 |
$1$STAGEROUND | 3 | 0 | 0 |
$3$STAGEREADY | 3 | 0 | 0 |
SC1180 | 0 | 3 | 0 |
$1$SC2600 | 0 | 2 | 0 |
$2$MPINIT | 2 | 0 | 0 |
DRAWCHP | 2 | 0 | 0 |
SC1490 | 0 | 2 | 0 |
SC1760 | 0 | 2 | 0 |
SELSTAGE | 0 | 2 | 0 |
$1$SC2630 | 0 | 1 | 0 |
$1$SETSTAGEFLAG | 1 | 0 | 0 |
$1$STAGECLOSE | 1 | 0 | 0 |
$2$STAGECLOSE | 1 | 0 | 0 |
$2$STAGEROUND | 1 | 0 | 0 |
$3$SC2810 | 0 | 1 | 0 |
DEBUGMAP | 0 | 1 | 0 |
DEBUGMAP2 | 0 | 1 | 0 |
ORGANIZE | 0 | 1 | 0 |
SC0000 | 0 | 1 | 0 |
SC0470 | 0 | 1 | 0 |
SC0540 | 0 | 1 | 0 |
SC0580 | 0 | 1 | 0 |
SC0930 | 0 | 1 | 0 |
SC1100 | 0 | 1 | 0 |
SC1190 | 0 | 1 | 0 |
SC1290 | 0 | 1 | 0 |
SC1480 | 0 | 1 | 0 |
SC1780 | 0 | 1 | 0 |
SC6150 | 0 | 1 | 0 |
SC6250 | 0 | 1 | 0 |
SETROOM | 1 | 0 | 0 |