floor_terrain_template
Global of Kamidori Alchemy Meister: the cell G:0x378e, of type int[53x53], data-table, values LAINIT terrain id 0..39 per doubled-coordinate cell; 0 = void (no tile) on tile cells, wall on edge cells.
Pristine authored floor. MPINIT@0x0 zeroes 53*53 cells from here, then the matching block copies 2*height rows of 2*width cells to 0x378e+y*53+1 (y=1..2H, e.g. MPINIT@0x3c dest 0x37c4 = row 1 col 1). FIELD@0x69e copy-dwords it into current_floor_terrain_grid on fresh entry; RESETLAND@0x73 restores a rectangle from it. 172 maps total: 145 base, 11 $1$, 2 $2$, 14 $3$.
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 |
|---|---|---|---|
MPINIT | 0 | 0 | 3731 |
$3$MPINIT | 0 | 0 | 390 |
$1$MPINIT | 0 | 0 | 282 |
$2$MPINIT | 0 | 0 | 90 |
FIELD | 0 | 0 | 1 |
RESETLAND | 0 | 0 | 1 |