current_item_id
Global of Himegari Dungeon Meister: the cell G:0x8c877, of type int, index-pointer, values ITINIT item id; 0 means none.
Shared item-id argument/selection slot. Item menus and gameplay scripts write a chosen item id, use it to index ITINIT arrays, and dispatch through item_handler_script_id; ITMES compares it against all 287 item ids to select the matching player-facing title and description.
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.
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 |
|---|---|---|---|
ITMES | 311 | 0 | 0 |
USEITEM | 29 | 1 | 0 |
IMPROVE | 23 | 6 | 0 |
CHMENU | 12 | 8 | 0 |
DRAWTIP | 18 | 0 | 0 |
ADDITEM | 14 | 0 | 0 |
ALCHEMY | 3 | 5 | 0 |
INFOIT | 5 | 3 | 0 |
STATUS | 3 | 2 | 0 |
$1$ITMES | 4 | 0 | 0 |
SALLY | 2 | 2 | 0 |
SC0040 | 0 | 4 | 0 |
SC0490 | 0 | 4 | 0 |
SC0530 | 0 | 4 | 0 |
SC0790 | 0 | 4 | 0 |
CALCDMG | 0 | 3 | 0 |
DEBUGADV2 | 0 | 3 | 0 |
FIELD | 0 | 3 | 0 |
SC0010 | 0 | 3 | 0 |
SC0330 | 0 | 3 | 0 |
BTL | 0 | 2 | 0 |
SC0140 | 0 | 2 | 0 |
SC0150 | 0 | 2 | 0 |
SC0320 | 0 | 2 | 0 |
SC0360 | 0 | 2 | 0 |
SC0510 | 0 | 2 | 0 |
SC0810 | 0 | 2 | 0 |
$1$SC1260 | 0 | 1 | 0 |
$1$SC1270 | 0 | 1 | 0 |
ADDRANDOMITEM | 0 | 1 | 0 |
CALCILL | 1 | 0 | 0 |
DEBUGMAP | 0 | 1 | 0 |
DEBUGMAP2 | 0 | 1 | 0 |
DEBUGMAP3 | 0 | 1 | 0 |
EVOLVE | 0 | 1 | 0 |
INPUTNAME | 0 | 1 | 0 |
LOSTRANDOMITEM | 0 | 1 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