unit_sort_key
Global of Himegari Dungeon Meister: the cell G:0x70f0e, of type int[1000], data-table, values mostly unique values 10..2070.
EBINIT ordering key populated for 248 units. CHMENU, EXILE, SALLY, INFOEN, and SUMMON pass this array to op 0x12f's stable index sort or combine it with a unit id to build menu ordering keys, mirroring item_sort_key and skill_sort_key.
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.sort_key.
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 | 248 | 0 |
$1$EBINIT | 0 | 7 | 0 |
CHMENU | 0 | 0 | 1 |
EXILE | 0 | 0 | 1 |
INFOEN | 0 | 0 | 1 |
SALLY | 0 | 0 | 1 |
SUMMON | 0 | 0 | 1 |