current_stage_terrain_grid
Global of Himegari Dungeon Meister: the cell G:0x341ab, of type int[2000][53], data-table, values mutable terrain type id 0..19 on the doubled-coordinate half-tile grid.
Current stage's mutable terrain grid. FIELD clears all 2,000 rows and copies the selected stage_terrain_atlas rectangle; rendering, minimap, occupancy, battle, and movement scripts read it, while SETLAND/DELLAND alter cells and RESETLAND restores atlas values.
OME’s registry gives it with high confidence, from investigation. The base mod himegari-base exports the name, so Lua and an event’s fields can use it.
It depends on 0xccc93.
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 | 18 |
DRAWMAP | 0 | 0 | 13 |
CALCOCC | 0 | 0 | 6 |
SALLY | 0 | 0 | 2 |
ATSEEK | 0 | 0 | 1 |
CALCBTPARAM | 0 | 0 | 1 |
DELLAND | 0 | 0 | 1 |
DRAWCH | 0 | 0 | 1 |
DRAWMINIMAP | 0 | 0 | 1 |
DRAWVOL | 0 | 0 | 1 |
MVSEEK | 0 | 0 | 1 |
RESETLAND | 0 | 0 | 1 |
SETLAND | 0 | 0 | 1 |
SETROUTE | 0 | 0 | 1 |
USEMAGIC | 0 | 0 | 1 |