action_range_distance_grid
Global of Himegari Dungeon Meister: the cell G:0xb8d86, of type int[][27], data-table, values 0 outside attack range; otherwise one-based encoded range band.
ATSEEK's row-major action-range flood-fill grid. It starts from the acting entity, expands through map-valid doubled-coordinate neighbors up to usable_action_max_range, and stores 1 for the first range band, 2 for the next, and so on. RTN_M051/052 select offensive targets from it; RTN_M061 selects in-range healing targets.
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 0x5231f, 0x52351, 0xcc9f3, 0xcc9f4, 0xcc9fe.
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 |
|---|---|---|---|
ATSEEK | 0 | 0 | 6 |
FIELD | 0 | 0 | 4 |
RTN_M052 | 0 | 0 | 3 |
RTN_M061 | 0 | 0 | 3 |
RTN_M051 | 0 | 0 | 2 |
RTN_M053 | 0 | 0 | 2 |
SELACT | 0 | 0 | 1 |