stage_enemy_faction_id
Global of Kamidori Alchemy Meister: the cell G:0x1409b4, of type int[30], data-table, values faction 2..4 (2 = monsters).
FIELD@0xb8b copies it to the unit faction 0x60cae; bases/gates spawn only enemies whose faction equals the object's owner state (FIELD@0xb0a); ADDEN reads it.
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.faction_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 | 1188 | 1 |
$3$STINIT | 0 | 185 | 0 |
$1$STINIT | 0 | 137 | 0 |
$2$STINIT | 0 | 52 | 0 |
FIELD | 0 | 0 | 7 |
ADDEN | 0 | 0 | 5 |