item_handler_script_id
Global of Kamidori Alchemy Meister: the cell G:0x2d2848, of type int[2000], data-table, values packed script id: 15700 = ITMES.BIN; $1$ items 0x100035d = $1$ITMES.BIN; $3$ items 0x30002cc = $3$ITMES.BIN.
Set on every item. SHOP@0x03a49 (and ALCHEMY, FELLOW, INFO3, INFO4, SALE, SELGEM, SELORN) look up the value and pass it straight to call-script. That call dispatches to the item's message/behavior script in the same append layer.
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 item, as item.id.handler_script_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 |
|---|---|---|---|
ITINIT | 0 | 993 | 0 |
$3$ITINIT | 0 | 280 | 0 |
$1$ITINIT | 0 | 25 | 0 |
$2$ITINIT | 0 | 22 | 0 |
ALCHEMY | 0 | 0 | 1 |
FELLOW | 0 | 0 | 1 |
INFO3 | 0 | 0 | 1 |
INFO4 | 0 | 0 | 1 |
SALE | 0 | 0 | 1 |
SELGEM | 0 | 0 | 1 |
SELORN | 0 | 0 | 1 |
SHOP | 0 | 0 | 1 |