terrain_move_costs
Global of Kamidori Alchemy Meister: the cell G:0x2a35b1, of type int[40], data-table, values movement points to enter a tile (1 normal, 2 water/lava/electric, 3 mud, 4 sand).
MVSEEK@0x41a uses it as the step cost (forced to 1 when the mover has skill 1 飛行 or 3 転移 in 0x548c8; tripled for player units under an unexplained mode test); STATUS@0x2092 prints it ('-' when zero); FELLOW reads it too.
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.
Record tables
It is a field of the table terrain, as terrain.id.move_cost.
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 |
|---|---|---|---|
LAINIT | 0 | 26 | 0 |
$3$LAINIT | 0 | 5 | 0 |
STATUS | 0 | 0 | 2 |
FELLOW | 0 | 0 | 1 |
MVSEEK | 0 | 0 | 1 |