town_site_hooks
Global of Kamidori Alchemy Meister: the cell G:0x3d41e0, of type int[32], index-pointer, values packed script ids: [0]=SIINIT (0x451f), [n]=$n$SIINIT.
TOWN@0x194 and SELSTAGE@0x539 call-script each nonzero entry to (re)build the current town's site table.
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 |
|---|---|---|---|
SELSTAGE | 0 | 0 | 2 |
TOWN | 0 | 0 | 2 |
$1$AUTORUN | 0 | 1 | 0 |
$2$AUTORUN | 0 | 1 | 0 |
$3$AUTORUN | 0 | 1 | 0 |
INIT2 | 0 | 1 | 0 |