battle_outcome_flags
Global of Himegari Dungeon Meister: the cell G:0x152618, of type int, unknown, values low bits: 1 = target defeated, 2 = actor defeated, 4 = both survived; combinations may accumulate during FIELD resolution.
BTL derives the low three bits from the acting and target entities' post-exchange HP. Mask 4 selects the nonlethal experience table; otherwise BTL uses the defeat table. FIELD consumes and combines the result during post-battle flow, then passes it to SCJUMP, whose former progress-C comparisons are battle-outcome decisions.
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.
It depends on 0x4e085, 0x66713, 0x66714.
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 | 530 | 0 | 0 |
$1$SCJUMP | 24 | 0 | 0 |
BTL | 7 | 3 | 0 |
FIELD | 4 | 5 | 0 |