item_inventory_counts
Global of Himegari Dungeon Meister: the cell G:0x3306, of type int[1000], data-table, values owned count per item id, 0..99.
ADDITEM@0x00016 adds current_item_count_change to the element of current_item_id and clamps it to 0 (ADDITEM@0x00024) and 99 (ADDITEM@0x00048). GAMESTART, CHMENU, ALCHEMY, SUMMON, TRAIN and STUDY read it. Its 1000 cells end where the next item-indexed array (0x36ee, which ADDITEM sets for an item gained) begins, as item_category is int[1000].
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 |
|---|---|---|---|
ALCHEMY | 0 | 0 | 8 |
ADDITEM | 0 | 0 | 7 |
CHMENU | 0 | 0 | 6 |
FORT | 0 | 0 | 2 |
GAMESTART | 0 | 0 | 2 |
SELSTAGE | 0 | 0 | 2 |
TUNE | 0 | 0 | 2 |
EVOLVE | 0 | 0 | 1 |
GAMECLEAR | 0 | 0 | 1 |
LOSTRANDOMITEM | 0 | 0 | 1 |
SC0150 | 1 | 0 | 0 |
STUDY | 0 | 0 | 1 |
SUMMON | 0 | 0 | 1 |
TRAIN | 0 | 0 | 1 |