Soukoku no Arterial events
The events Soukoku no Arterial’s base mod arterial-base declares: 7. 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 |
|---|---|---|
arterial.area.loaded | arterial.area.after_loaders | The loaders of the area in play have run (MPINIT, ROINIT and UNINIT, the base's and each append's): its points, routes and units are written, and the player's unit has its pictures. A handler that rewrites them changes the map that is set up next. The game runs the loaders, and raises this, each time it sets the area up: when the party enters it, after a battle whose next scene is played on a map, and when a save made on a map is loaded (during the boot, after arterial.data.layered and before arterial.data.ready). The loaders write their tables afresh each time, so a handler makes the same change each time. The data files of arterial.tables write their parts for the area here. |
arterial.area.ready | arterial.area.after_ready_handlers | Every layer's READY handler has run (READY and each append's $n$READY), which set story cells from the progress. The map walks the READY chain when it sets an area up and again after some of its actions, so this is raised more than once in an area: a handler makes the same change each time. |
arterial.battle.start | arterial.battle.before_phases | A battle is about to be played: its rule, its skills and the decks are set up and its music plays. Raised at each try, so again when the player fights a lost battle again. |
arterial.battle.close | arterial.battle.after_phases | A battle is decided, before any of its outcome is applied: on a win the rewards and the experience come next (arterial.experience.award), on a loss the offer to fight again. Raised at each try. |
arterial.data.layered | arterial.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 card, a character, an item, a battle) 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 arterial.tables are applied here, among this event's handlers in the mods' load order, so a handler here takes its place among them. |
arterial.data.ready | arterial.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, indexed the faces, walked the saved decks, counted the party's skills, and set the area up again for a save made on a map. An edit made here comes after that work, which does not see it: arterial.data.layered comes before it. A handler here runs after every data file of arterial.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 arterial.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. |
arterial.experience.award | arterial.experience.after_calculation | One party character's experience from a won battle, after the leader's and the skills' bonuses and before it is applied. |