current_floor_terrain_grid
Global of Kamidori Alchemy Meister: the cell G:0x4fde5, of type int[53x53], data-table, values mutable LAINIT terrain id per doubled-coordinate cell.
Live map. FIELD@0x69e copies floor_terrain_template here; read at [2ty][2tx] for tiles and at odd offsets for edges by DRAWMAP@0x2c1/0x3c1/0x433, DRAWMINIMAP@0x97, SETROOM@0x84/0x3a8, MVSEEK@0x57 (copied into a local work grid), CALCOCC@0x3f0, CALCSUPPORT, BTL, STATUS. SETLAND@0x57 writes a rectangle to set_land_terrain_id (digging/opening), DELLAND@0x73 zeroes a rectangle plus its border edges, RESETLAND@0x83 restores template cells.
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 |
|---|---|---|---|
FIELD | 0 | 0 | 13 |
DRAWMINIMAP | 0 | 0 | 10 |
DRAWMAP | 0 | 0 | 7 |
CALCSUPPORT | 0 | 0 | 3 |
SETROOM | 0 | 0 | 3 |
BTL | 0 | 0 | 2 |
CALCSCOPE | 0 | 0 | 2 |
FELLOW | 0 | 0 | 2 |
ATSEEK | 0 | 0 | 1 |
BOMBSEEK | 0 | 0 | 1 |
CALCOCC | 0 | 0 | 1 |
DELLAND | 0 | 0 | 1 |
DRAWCH | 0 | 0 | 1 |
DRAWCHSTATE | 0 | 0 | 1 |
DRAWVOL | 0 | 0 | 1 |
MVSEEK | 0 | 0 | 1 |
RESETLAND | 0 | 0 | 1 |
SETLAND | 0 | 0 | 1 |
SETROUTE | 0 | 0 | 1 |
STATUS | 0 | 0 | 1 |