$3$MPINIT
Script $3$MPINIT.BIN of Kamidori Alchemy Meister: id 0x3000251, 498 instructions, fingerprint 20256179bcab.
A layer: the game mounts it over MPINIT, the base script it writes over.
What its base script does, from OME’s notes on it:
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 | 390 |
current_floor_height_tiles | 0 | 14 | 0 |
current_floor_no | 14 | 0 | 0 |
current_floor_width_tiles | 0 | 14 | 0 |
current_labyrinth_id | 14 | 0 | 0 |