stage_map_max_tile_x
Global of Himegari Dungeon Meister: the cell G:0xec8c5, of type int[1000], data-table, values inclusive tile X maximum, 6..25 in shipped mapped stages.
STINIT2's inclusive right map bound indexed by stage id. Consumers pair it with stage_map_min_tile_x for iteration, camera/minimap limits, random placement, and the doubled-coordinate terrain-atlas copy.
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 0xec4dd.
Record tables
It is a field of the table stage_catalog, as stage_catalog.id.map_max_tile_x.
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 |
|---|---|---|---|
STINIT2 | 0 | 74 | 0 |
FIELD | 0 | 0 | 10 |
$1$STINIT2 | 0 | 4 | 0 |
DRAWMAP | 0 | 0 | 3 |
CALCOCC | 0 | 0 | 2 |
DRAWMINIMAP | 0 | 0 | 2 |
RTN_M013 | 0 | 0 | 2 |
RTN_M014 | 0 | 0 | 2 |
ADDEN | 0 | 0 | 1 |
MAGIC | 0 | 0 | 1 |
RTN_M002 | 0 | 0 | 1 |
RTN_M004 | 0 | 0 | 1 |
RTN_M005 | 0 | 0 | 1 |
RTN_M006 | 0 | 0 | 1 |
RTN_M007 | 0 | 0 | 1 |
RTN_M008 | 0 | 0 | 1 |
RTN_M009 | 0 | 0 | 1 |
RTN_M010 | 0 | 0 | 1 |
RTN_M011 | 0 | 0 | 1 |
RTN_M012 | 0 | 0 | 1 |
RTN_M015 | 0 | 0 | 1 |
RTN_M016 | 0 | 0 | 1 |
SELSTAGE | 0 | 0 | 1 |