set_land_terrain_id
Global of Kamidori Alchemy Meister: the cell G:0x2a3510, of type int, index-pointer, values LAINIT terrain id.
Argument of SETLAND: SETLAND@0x62 writes it into every cell of the doubled rectangle (2*G[0xfec0c]..2*G[0xfec0e], 2*G[0xfec0d]..2*G[0xfec0f]) and reveals tiles whose visibility class is 1 (or >0 once the stage is fully complete). Set by STAGEREADY/STAGEROUND/STAGECLOSE and story scripts (SC2200, SC3030, ...) to dig or open map areas; SETOCC@0x15 also reads it as a faction bit.
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.
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 |
|---|---|---|---|
STAGEREADY | 0 | 86 | 0 |
$3$STAGEROUND | 0 | 28 | 0 |
SC3540 | 0 | 9 | 0 |
STAGEROUND | 0 | 6 | 0 |
SC3030 | 0 | 3 | 0 |
SC3550 | 0 | 3 | 0 |
SETLAND | 3 | 0 | 0 |
STAGECLOSE | 0 | 3 | 0 |
$2$STAGEREADY | 0 | 2 | 0 |
SC2200 | 0 | 2 | 0 |
SC2310 | 0 | 2 | 0 |
$1$STAGEREADY | 0 | 1 | 0 |
DELENMASS | 1 | 0 | 0 |
SC3530 | 0 | 1 | 0 |
SC4520 | 0 | 1 | 0 |
SETOCC | 1 | 0 | 0 |