Kamidori Alchemy Meister events
The events Kamidori Alchemy Meister’s base mod kamidori-base declares: 8. Each is raised at patch points of the game’s scripts, with fields a Lua handler reads by name, so a mod needs no address or offset.
| Event | Raised at | What it is |
|---|---|---|
kamidori.data.layered | kamidori.boot.data_layered | At boot, once every layer has written its data tables (the base layer's, then each append's) and before the boot uses them. An edit made here lands where an append's edit lands, and the boot's own work then runs over it as it runs over the appends'. A handler that edits a table (a unit's stats, an item, a skill) changes it until the tables are built again. The tables are not saved: a load builds them again and raises this again while it restores (maid.session.restoring is true), so the handler makes its edit again. The data files of kamidori.tables are applied here, among this event's handlers in the mods' load order, so a handler here takes its place among them. |
kamidori.data.ready | kamidori.boot.data_ready | At boot, once every data table is built and the boot's own work on them is done: INIT2 has filled the unset text colours, rebuilt the field for a save made on a floor and set up the studio's ornaments. An edit made here comes after that work, which does not see it: kamidori.data.layered comes before it. A handler here runs after every data file of kamidori.tables, whatever the load order, because this event comes later in the boot; one that should take its place among them by load order subscribes to kamidori.data.layered instead. The tables are not saved: a load builds them again and raises this again while it restores (maid.session.restoring is true), so the handler makes its edit again. |
kamidori.experience.award | kamidori.experience.after_calculation | One experience award, after the costume bonus and before it is applied. |
kamidori.stage.loaded | kamidori.stage.after_loader, kamidori.stage.after_info_reload | The loaders of the stage being played have run (the base's and each append's). At the stage's start nothing is placed yet, and a handler that rewrites the stage's enemy or object slots changes what the stage places. FIELD runs the loaders, and raises this, again each time it is entered again during the stage (back from the camp screens, or a load of a save made in the field), and INFO's third tab (アイテム情報) runs every stage's loaders for its 獲得地点 view and, on a floor, that floor's again, and raises this there: the loaders write their tables afresh and nothing new is placed, so a handler makes the same change each time. The floor reads the enemy table again later, for its reinforcements. The stage list's preview of a stage raises kamidori.stage.previewed instead. Work that belongs once to a played stage goes to kamidori.stage.ready. |
kamidori.stage.previewed | kamidori.stage.after_list_preview | The stage list (the world map's choice of a floor) has run the loaders of the stage under its cursor (the base's and each append's) for its preview, which lists the enemies whose gates pass. The list does this when it opens, each time the cursor moves onto another stage, and when the party screen comes back to it without setting out. The stage is not being played: nothing is placed, and the loaders write the tables afresh each time, so a handler that rewrites the stage's enemy slots changes what the preview lists and makes the same change each time. A handler that changes what the stage places when it is played subscribes to kamidori.stage.loaded too. |
kamidori.stage.ready | kamidori.stage.after_ready_handlers | Once per stage, at its start: the enemies are placed and every layer's ready handler has run. |
kamidori.stage.round | kamidori.stage.after_round_handlers | The start of each player turn after the first, after every layer's round handler. |
kamidori.stage.close | kamidori.stage.after_close_handlers | The stage ends, after every layer's close handler. |