unit_canonical_id
Global of Himegari Dungeon Meister: the cell G:0x7267e, of type int[1000], data-table, values EBINIT canonical unit id 2..80.
Maps 106 alternate, boss, brainwashed, EX, and enemy variants back to their canonical character or recruitable archetype. For example all Estelle bosses map to 12, brainwashed Sylphine maps to 5, and ordinary/EX orcs map to recruitable orc 52. Setup, menus, inventory, dismissal, and combat normalize through this id. A capture joins as it: FIELD passes the captured enemy's unit to UNITECH (FIELD@0x7502-0x7518), which takes its canonical id when it has one (UNITECH@0x50-0x65) and puts it in a free slot from 50 to 99 as a captive (UNITECH@0x11b-0x16d).
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 unit, as unit.id.canonical_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 |
|---|---|---|---|
EBINIT | 0 | 106 | 0 |
SALLY | 0 | 0 | 12 |
CHMENU | 0 | 0 | 6 |
EXILE | 0 | 0 | 6 |
USEITEM | 0 | 0 | 4 |
DELCH | 0 | 0 | 3 |
ADDEXP | 0 | 0 | 2 |
DRAWENP | 0 | 0 | 2 |
GAMESTART | 0 | 0 | 2 |
SETCH | 0 | 0 | 2 |
UNITECH | 0 | 0 | 2 |
$1$EBINIT | 0 | 1 | 0 |