item_inventory_counts
Global of Kamidori Alchemy Meister: the cell G:0x7ea4f, of type int[2000], data-table, values owned count per item id, capped at 999.
ADDITEM@0x00041 and SHOP@0x0148e compare it with 0x3e7. On overflow, ADDITEM converts the excess at item_prices column 1 into money 0x7ea39. SHOP@0x02673 displays it.
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.inventory_count.
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 |
|---|---|---|---|
SCJUMP | 234 | 0 | 0 |
$3$SCJUMP | 41 | 0 | 0 |
SHOP | 0 | 0 | 11 |
ENHANCE | 0 | 0 | 9 |
ALCHEMY | 0 | 0 | 8 |
ARRANGE | 0 | 0 | 8 |
FELLOW | 0 | 0 | 8 |
ADDITEM | 0 | 0 | 7 |
$1$SCJUMP | 6 | 0 | 0 |
CHANGEARM | 0 | 0 | 6 |
ADDSTOCK | 0 | 0 | 5 |
SC5510 | 3 | 1 | 0 |
$3$CLOSE | 3 | 0 | 0 |
SELGEM | 0 | 0 | 3 |
SELORN | 0 | 0 | 3 |
USEITEM | 0 | 0 | 3 |
FIELD | 0 | 0 | 2 |
GAMESTART | 0 | 0 | 2 |
SALE | 0 | 0 | 2 |
SETTOOLLIST | 0 | 0 | 2 |
$2$SCJUMP | 1 | 0 | 0 |
CLOSE | 1 | 0 | 0 |
GAMECLEAR | 0 | 0 | 1 |
INFO4 | 0 | 0 | 1 |
RECEIPT | 0 | 0 | 1 |
REWARD | 0 | 0 | 1 |
SC0930 | 1 | 0 | 0 |
STAGECLEAR | 0 | 0 | 1 |
UNITECH | 0 | 0 | 1 |