unit_icon_id
Global of Himegari Dungeon Meister: the cell G:0x716de, of type int[1000], data-table, values icon cell id: 1..103 in SO009.AGF; 501..504 (the append's units) in $1$SO009A.AGF.
EBINIT icon selector populated for all 277 units; $1$EBINIT writes seven more. An id numbers a 40x40 face cell of the unit icon sheet, which FORT@0x60f and INFO@0xf1 load into surface 0x4a through READICON with G[0x62436] = 1: the sheet is G[0x15a75b] row 1 column 0 (INIT2@0x72: 0x334e, SO009.AGF, 400x440, ten by eleven cells), with the colour key 0x00ff00. Id k is drawn from x = ((k-1)/500*10 + (k-1)%10)*40, y = ((k-1)/10 % 50)*40 (SALLY@0x1d5b-0x1db6, CHMENU@0x2a85, DRAWCHP, EXILE, SUMMON): ids 1..500 are SO009's cells, ten to a row from (0, 0) in steps of 40, and ids 501 on are the cells of $1$SO009A.AGF (0x1000020, row 1 column 1, $1$AUTORUN@0x74), which READICON copies beside SO009 (READICON@0x5e-0x11f).
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.icon_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 | 277 | 0 |
$1$EBINIT | 0 | 7 | 0 |
READICON | 0 | 0 | 2 |
CHMENU | 0 | 0 | 1 |
DRAWCHP | 0 | 0 | 1 |
EXILE | 0 | 0 | 1 |
SALLY | 0 | 0 | 1 |
SUMMON | 0 | 0 | 1 |