MPINIT
Script MPINIT.BIN of Kamidori Alchemy Meister: id 0x4526, 4804 instructions, fingerprint 71674c0ed6d0.
Layers over it: $1$MPINIT, $2$MPINIT, $3$MPINIT.
The dungeon floor maps: it writes the map of the floor current_labyrinth_id and current_floor_no select into the 53×53 floor_terrain_template, with the floor's size. Labyrinth -1 holds the battle maps outside the dungeons.
Source: docs/kamidori-data-tables.md (How a dungeon floor is stored)
Its caller sets these globals before the call:
| Global | What it holds |
|---|---|
current_labyrinth_id | the labyrinth of the floor to load |
current_floor_no | the floor to load |
Calls
No script calls it by a constant id.
It calls no script by a constant id.
Globals
The named globals its instructions read, write or index (take as an array’s base), with how many operands do each.
| Global | Reads | Writes | Indexes |
|---|---|---|---|
floor_terrain_template | 0 | 0 | 3731 |
current_floor_height_tiles | 0 | 146 | 0 |
current_floor_width_tiles | 0 | 146 | 0 |
current_floor_no | 145 | 0 | 0 |
current_labyrinth_id | 145 | 0 | 0 |