stage_clear_state
Global of Himegari Dungeon Meister: the cell G:0x7684, of type int[], data-table, values {0,1}; 1 means the stage has been cleared.
Persistent per-stage completion state indexed by stage id. STAGECLEAR sets the current stage cell to 1, while FORT, SELSTAGE, and FIELD use zero versus one to distinguish an uncleared mission from a cleared replay.
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 |
|---|---|---|---|
FIELD | 0 | 0 | 24 |
SELSTAGE | 0 | 0 | 8 |
FORT | 0 | 0 | 7 |
DRAWMAP | 0 | 0 | 4 |
ALCHEMY | 0 | 0 | 2 |
CHMENU | 0 | 0 | 2 |
DRAWMINIMAP | 0 | 0 | 2 |
EVOLVE | 0 | 0 | 2 |
MAGIC | 0 | 0 | 2 |
RENDERMAP | 0 | 0 | 2 |
STAGECLEAR | 0 | 0 | 2 |
STUDY | 0 | 0 | 2 |
SUMMON | 0 | 0 | 2 |
CALCOCC | 0 | 0 | 1 |
DELLAND | 0 | 0 | 1 |
DRAWCH | 0 | 0 | 1 |
DRAWOBJ | 0 | 0 | 1 |
DRAWVOL | 0 | 0 | 1 |
GAMECLEAR | 0 | 0 | 1 |
GAMESTART | 0 | 0 | 1 |
MVSEEK | 0 | 0 | 1 |
RESETLAND | 0 | 0 | 1 |
SC0030 | 0 | 0 | 1 |
SC0050 | 0 | 0 | 1 |
SC0070 | 0 | 0 | 1 |
SC0250 | 0 | 0 | 1 |
SC0280 | 0 | 0 | 1 |
SC0290 | 0 | 0 | 1 |
SETLAND | 0 | 0 | 1 |
SETOCC | 0 | 0 | 1 |
USEMAGIC | 0 | 0 | 1 |
WARPD | 0 | 0 | 1 |