stage_enemy_unit_id
Global of Himegari Dungeon Meister: the cell G:0xe7811, of type int[30], data-table, values EBINIT unit ids 1..869; zero means unused slot.
Unit-definition id for each current-stage enemy slot. FIELD rejects zero slots, while FIELD and ADDEN pass populated ids to SETEN to copy the corresponding EBINIT definition into a runtime entity.
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.
Record tables
It is a field of the table stage_enemy, as stage_enemy.id.unit_id.
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 |
|---|---|---|---|
STINIT | 0 | 1378 | 1 |
$1$STINIT | 0 | 30 | 1 |
FIELD | 0 | 0 | 4 |
ADDEN | 0 | 0 | 1 |