stage_result
Global of Himegari Dungeon Meister: the cell G:0xccbcc, of type int, index-pointer, values 0 while the stage runs; 1 won; 2 lost.
How the current stage ends. FIELD@0x16c clears it at entry. It sets 1 when the victory condition is met (勝利条件達成, FIELD@0x903c), when the turn limit's outcome is a clear (FIELD@0x7686), and on a replay whose enemies have all withdrawn (全軍撤退, FIELD@0x8d79); 2 when the home base falls (本拠地陥落, FIELD@0x8c93) or the turn limit's outcome is a defeat (FIELD@0x76cf); scenes that end a stage set 1 (SC0030, SC0050, SC0070, SC0250, SC0280, SC0290). FIELD@0xb7cf walks the close chain for 1 and 2 and then takes the column-1 (1) or column-2 (2) decision of stage_scjump_decision_ids.
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 | 25 | 7 | 0 |
DRAWCHP | 1 | 0 | 0 |
SC0030 | 0 | 1 | 0 |
SC0050 | 0 | 1 | 0 |
SC0070 | 0 | 1 | 0 |
SC0250 | 0 | 1 | 0 |
SC0280 | 0 | 1 | 0 |
SC0290 | 0 | 1 | 0 |