current_stage_turn
Global of Kamidori Alchemy Meister: the cell G:0x429b, of type int, counter, values one-based turn number while a floor is active.
FIELD@0x31e clears it, FIELD@0x125a sets 1 at the first turn and FIELD@0x5371 adds one after each; FIELD@0x9377 ends the map when it equals stage_turn_limit, the round chain runs while it is above 1, and DRAWCHP displays it.
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 | 120 | 0 | 0 |
STAGEROUND | 47 | 0 | 0 |
$3$SCJUMP | 13 | 0 | 0 |
STAGECLOSE | 13 | 0 | 0 |
$3$STAGEROUND | 12 | 0 | 0 |
FIELD | 7 | 3 | 0 |
$1$SCJUMP | 7 | 0 | 0 |
$3$SETSTAGEFLAG | 4 | 0 | 0 |
$3$STAGECLOSE | 4 | 0 | 0 |
SETSTAGEFLAG | 3 | 0 | 0 |
$1$STAGEROUND | 2 | 0 | 0 |
$2$SCJUMP | 2 | 0 | 0 |
$2$STAGEROUND | 1 | 0 | 0 |
DRAWCHP | 1 | 0 | 0 |
SETOBJ | 1 | 0 | 0 |