terrain_texture_slot_indices
Global of Kamidori Alchemy Meister: the cell G:0x2a3511, of type int[40], data-table, values map texture slot 1..14 (1 plain, 2 water, 3 shallows, 4 plain variant, 5 open shaft, 6 temple, 9 lava, 10 mud, 11 electric, 12 sky, 13 cliff, 14 sand).
DRAWMAP@0x304 picks stage_map_texture_asset_overrides[slot] (0x140432) and draws surface 0x52+slot (DRAWMAP@0x37e); DRAWMAP@0x3ea/0x45c draws a seam where neighbouring tiles of the same room use different slots.
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.
Record tables
It is a field of the table terrain, as terrain.id.texture_slot.
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 |
|---|---|---|---|
LAINIT | 0 | 26 | 0 |
DRAWMAP | 0 | 0 | 6 |
$3$LAINIT | 0 | 5 | 0 |