stage_object_secondary_param
Global of Kamidori Alchemy Meister: the cell G:0x140540, of type int[50], data-table, values type-dependent: teleporters = destination tile y; chests/treasure/gather points = quantity/grade.
CHECKOBJ@0x208 (teleport destination y occupancy check); FIELD@0x7a49.. reads it when an object is used (item quantity / harvest grade); RTN_M004/005/011/012 read it for AI object targeting. On a gathering point (type 0x20 or 0x21), FIELD@0x89ad adds it to dig_pending_gather_counts[its dig table]: how many materials DIG rolls for a use.
OME’s registry gives it with med 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 stage_object, as stage_object.id.secondary_param.
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 |
|---|---|---|---|
STINIT | 0 | 446 | 1 |
$3$STINIT | 0 | 75 | 0 |
$1$STINIT | 0 | 36 | 0 |
$2$STINIT | 0 | 12 | 0 |
FIELD | 0 | 0 | 11 |
CHECKOBJ | 0 | 0 | 1 |
RTN_M004 | 0 | 0 | 1 |
RTN_M005 | 0 | 0 | 1 |
RTN_M011 | 0 | 0 | 1 |
RTN_M012 | 0 | 0 | 1 |