current_item_count_change
Global of Himegari Dungeon Meister: the cell G:0x8c878, of type int, choice-output, values signed count; a negative one takes items away.
ADDITEM's second argument, beside current_item_id: ADDITEM@0x00016 adds it to item_inventory_counts[current_item_id], and a positive change also marks the item obtained (ADDITEM@0x00062). 42 other scripts set it before call-script ADDITEM: 1 for an item found, ALCHEMY@0x0140c the negated quantity of each ingredient. The base mod's give_item helper sets it and puts it back.
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 |
|---|---|---|---|
SC0040 | 0 | 4 | 0 |
SC0490 | 0 | 4 | 0 |
SC0530 | 0 | 4 | 0 |
SC0790 | 0 | 4 | 0 |
ALCHEMY | 0 | 3 | 0 |
DEBUGADV2 | 0 | 3 | 0 |
FIELD | 0 | 3 | 0 |
SC0010 | 0 | 3 | 0 |
SC0330 | 0 | 3 | 0 |
ADDITEM | 2 | 0 | 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 |
CHMENU | 0 | 1 | 0 |
DEBUGMAP | 0 | 1 | 0 |
DEBUGMAP2 | 0 | 1 | 0 |
DEBUGMAP3 | 0 | 1 | 0 |
EVOLVE | 0 | 1 | 0 |
LOSTRANDOMITEM | 0 | 1 | 0 |
SALLY | 0 | 1 | 0 |
SC0020 | 0 | 1 | 0 |
SC0030 | 0 | 1 | 0 |
SC0170 | 0 | 1 | 0 |
SC0340 | 0 | 1 | 0 |
SC0520 | 0 | 1 | 0 |
SC0540 | 0 | 1 | 0 |
SC0710 | 0 | 1 | 0 |
SC0720 | 0 | 1 | 0 |
SC0800 | 0 | 1 | 0 |
SC0820 | 0 | 1 | 0 |
SC0840 | 0 | 1 | 0 |
SC1520 | 0 | 1 | 0 |
SC1540 | 0 | 1 | 0 |
SELSTAGE | 0 | 1 | 0 |
STUDY | 0 | 1 | 0 |
SUMMON | 0 | 1 | 0 |
TRAIN | 0 | 1 | 0 |
UNITECH | 0 | 1 | 0 |