stage_terrain_atlas
Global of Himegari Dungeon Meister: the cell G:0xccc93, of type int[][53], data-table, values terrain type id 0..19; MPINIT authors columns 1..50 of 1,472 nonzero rows through grid Y 1600.
Immutable sparse half-tile terrain atlas loaded by MPINIT. Each footer copy writes fifty cells at row stride 53. FIELD doubles STINIT2's tile bounds and copies the selected rectangle into current_stage_terrain_grid; DRAWMINIMAP reads the atlas outside the active rectangle for border context, and RESETLAND restores changed cells from it.
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 0x26b5, 0xec4dd, 0xec8c5, 0xeccad, 0xed095.
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 | 1472 |
$1$MPINIT | 0 | 0 | 61 |
READY | 0 | 17 | 0 |
CLOSE | 0 | 10 | 0 |
$1$READY | 0 | 6 | 0 |
$1$SC1260 | 0 | 6 | 0 |
$1$SC1270 | 0 | 5 | 0 |
SC0420 | 0 | 4 | 0 |
$1$SC1380 | 0 | 3 | 0 |
DRAWMINIMAP | 0 | 0 | 3 |
ROUND | 0 | 3 | 0 |
SETLAND | 3 | 0 | 0 |
SC0490 | 0 | 2 | 0 |
DELENMASS | 1 | 0 | 0 |
FIELD | 0 | 0 | 1 |
RESETLAND | 0 | 0 | 1 |
SC0470 | 0 | 1 | 0 |
SETOCC | 1 | 0 | 0 |