stage_event_handler_script_ids
Global of Himegari Dungeon Meister: the cell G:0xccc33, of type int[32][3], data-table, values packed script id; zero means no handler.
FIELD's stage lifecycle chains, one row per layer: INIT2@0x4f stores READY.BIN, CLOSE.BIN and ROUND.BIN (0x3347..0x3349) in row zero and $1$AUTORUN stores $1$READY, $1$CLOSE and $1$ROUND in row one. FIELD@0x877b calls the nonzero cells of one column, rows 0..31 in order, with the column in its local 0x13e07: column 0 once the stage's enemies are placed (FIELD@0xa1f), column 2 at the start of each player turn after the first (FIELD@0x7642), and column 1 when the stage ends, won (FIELD@0xba99, before STAGECLEAR) or lost (FIELD@0xbab5). The base mod raises himegari.stage.ready, .round and .close after these walks.
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.
Its columns are named: 0 ready_handler, 1 close_handler, 2 round_handler. Lua and an event’s cell write a row’s column stage_event_handler_script_ids[i].column.
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 |
|---|---|---|---|
$1$AUTORUN | 0 | 3 | 0 |
INIT2 | 0 | 3 | 0 |
FIELD | 0 | 0 | 2 |