current_stage_turn
Global of Himegari Dungeon Meister: the cell G:0x204f4, of type int, counter, values positive one-based turn number while a stage is active.
FIELD initializes this to 1, increments it after end-of-turn processing, compares it with STINIT's stage turn limit and timed object schedules, and displays it through DRAWCHP. Card generation divides it by each CDINIT growth interval to increase that card's weighted-selection share.
OME’s registry gives it with high confidence, from investigation. The base mod himegari-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 | 42 | 0 | 0 |
FIELD | 7 | 3 | 0 |
SC0550 | 4 | 0 | 0 |
SC0790 | 2 | 0 | 0 |
$1$ROUND | 1 | 0 | 0 |
DRAWCHP | 1 | 0 | 0 |
SETOBJ | 1 | 0 | 0 |
STAGECLEAR | 1 | 0 | 0 |