item_sort_key
Global of Himegari Dungeon Meister: the cell G:0x8c879, of type int[1000], data-table, values mostly unique multiples of 10; 10..6390.
ITINIT field for all 287 populated item ids. CHMENU, IMPROVE, and INFOIT pass this array as the primary key to op 0x12f's stable index sort, establishing it as the catalog/display ordering key. The runtime lookup base is one cell before ITINIT's first write because item ids are one-based.
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 item, as item.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 |
|---|---|---|---|
ITINIT | 0 | 287 | 0 |
$1$ITINIT | 0 | 4 | 0 |
CHMENU | 0 | 0 | 1 |
IMPROVE | 0 | 0 | 1 |
INFOIT | 0 | 0 | 1 |