stage_object_secondary_payload
Global of Himegari Dungeon Meister: the cell G:0xe73ed, of type int[50], data-table, values object-type-tagged second payload: a teleporter's destination tile y (types 6, 36), a chest's or a treasure's item count (7, 8); 0 otherwise.
STINIT's second per-object payload, beside stage_object_primary_payload. FIELD moves a unit to (primary, secondary) through a teleporter (FIELD@0x5d7b-0x5e0b), and RTN_M004 matches a teleporter by it (RTN_M004@0xd6); the chest and treasure handlers give that many of the item (FIELD@0x5f93-0x601a, 0x6179-0x61c0).
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.
Record tables
It is a field of the table stage_object, as stage_object.id.secondary_payload.
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 | 855 | 1 |
$1$STINIT | 0 | 15 | 1 |
FIELD | 0 | 0 | 10 |
RTN_M004 | 0 | 0 | 1 |
RTN_M005 | 0 | 0 | 1 |
RTN_M011 | 0 | 0 | 1 |
RTN_M012 | 0 | 0 | 1 |