stage_enemy_unit_id
Global of Kamidori Alchemy Meister: the cell G:0x140a2c, of type int[30], data-table, values unit definition id; 0 = empty slot.
FIELD@0x4ad0 skips empty slots; FIELD@0xb78/0xa040 → 0x2a9b8b → SETEN; SELSTAGE@0x7bf lists enemies; ADDEN/CHANGEEN.
OME’s registry gives it with high confidence, from investigation. The base mod kamidori-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 | 2053 | 1 |
$3$STINIT | 0 | 189 | 0 |
$1$STINIT | 0 | 162 | 0 |
$2$STINIT | 0 | 55 | 0 |
FIELD | 0 | 0 | 4 |
SELSTAGE | 0 | 0 | 2 |
ADDEN | 0 | 0 | 1 |
CHANGEEN | 0 | 0 | 1 |