stage_object_use_counts
Global of Kamidori Alchemy Meister: the cell G:0x37305, of type int[1000x50], counter, values times each object has been used.
CHECKOBJ@0x1f and SETOBJ@0x184 compare it with object_type_use_limit; FIELD@0x2eaf increments it on use; FIELD@0x5b0 resets it on map entry for object_type_use_count_resets_on_entry types.
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.
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 |
|---|---|---|---|
STAGEROUND | 0 | 0 | 103 |
STAGECLOSE | 0 | 0 | 95 |
SETSTAGEFLAG | 0 | 0 | 28 |
$2$STAGECLOSE | 0 | 0 | 20 |
$1$SETSTAGEFLAG | 0 | 0 | 13 |
$3$STAGECLOSE | 0 | 0 | 7 |
FIELD | 0 | 0 | 6 |
$3$SETSTAGEFLAG | 0 | 0 | 2 |
CHECKOBJ | 0 | 0 | 1 |
SETOBJ | 0 | 0 | 1 |