current_stage_id
Global of Himegari Dungeon Meister: the cell G:0x4dfbc, of type int, index-pointer, values STINIT2 stage id; the shipped stages are 1..170, DEBUGMAP's is 0xa5.
The stage being played or last played. FIELD@0x200 calls stage_loader_script_ids[current_stage_id] (STINIT, or an append's $1$STINIT), then reads stage_display_names, stage_clear_state and stage_scjump_decision_ids by it; STINIT is a selector table keyed by it (74 sparse stage records, ids 1..170). DEBUGMAP writes 0xa5 before it enters FIELD. SCJUMP reads it 1,609 times to branch on the stage just played. Named scjump_progress_a until 2026-11-15 from those reads, which the base mod still exports as an alias.
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 | 1609 | 0 | 0 |
FIELD | 110 | 0 | 0 |
STINIT | 74 | 0 | 0 |
$1$SCJUMP | 70 | 0 | 0 |
READY | 44 | 0 | 0 |
SELSTAGE | 29 | 1 | 0 |
CLOSE | 17 | 0 | 0 |
FORT | 16 | 1 | 0 |
DRAWMAP | 13 | 0 | 0 |
ROUND | 12 | 0 | 0 |
CALCOCC | 10 | 0 | 0 |
DRAWMINIMAP | 9 | 0 | 0 |
ALCHEMY | 8 | 0 | 0 |
CHMENU | 8 | 0 | 0 |
EVOLVE | 8 | 0 | 0 |
RTN_M013 | 8 | 0 | 0 |
RTN_M014 | 8 | 0 | 0 |
STUDY | 8 | 0 | 0 |
SUMMON | 8 | 0 | 0 |
STAGECLEAR | 6 | 0 | 0 |
RTN_M008 | 5 | 0 | 0 |
RTN_M009 | 5 | 0 | 0 |
RTN_M015 | 5 | 0 | 0 |
$1$STINIT | 4 | 0 | 0 |
ADDEN | 4 | 0 | 0 |
MAGIC | 4 | 0 | 0 |
RTN_M002 | 4 | 0 | 0 |
RTN_M004 | 4 | 0 | 0 |
RTN_M005 | 4 | 0 | 0 |
RTN_M006 | 4 | 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