Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

Kamidori Alchemy Meister patch points

The named instructions of Kamidori Alchemy Meister’s scripts where a mod’s fragment or Lua hook goes: 10. A name stays the same across the revisions of a script, so a mod that names a point does not depend on an offset.

PointScriptWhat is true there
kamidori.experience.after_calculationADDEXPThe award is final and not yet applied. L[0x1] holds the experience the character receives: G[0xfec0c], the amount the caller passes (COMMITBTL after a battle, FIELD), times the costume bonus (100, plus 25 for each of the four item_costume_gem_sockets of character_costume_item_id[current_character_id] that holds 0x118), over 100. current_unit_id is the unit and current_character_id its canonical character, whose character_levels, character_experience and unit_level_cap the award reads. Every path reaches this instruction, so before site sees every award and may rewrite L[0x1]; an amount of 0 or less, or a character at its level cap, gains no experience. Weapon experience (G[0xfec0d] and the equipped item) is decided after this point and does not read L[0x1].
kamidori.boot.data_layeredINIT2The instruction after op 0x143 (INIT2@0x20c). Every layer has written its data: the 28 base *INIT scripts, then each mounted append's $n$AUTORUN and its $n$*INIT layers. The boot has not used the tables yet. INIT2 goes on to fill each unset text colour setting from voice_setting_default_text_colors, to rebuild the field when a save made on a floor is loaded (party_on_field: the stage loaders, then SETMAPTEX, whose READICON reads unit_graphic_asset_ids and item_costume_graphic_asset_ids), and to set up the studio's ornaments. None of it writes a record table, so that work reads an edit made here. The tables lie above the saved prefix (0xfd40f): a load zeroes them, the prologue builds them again, and control reaches here again while the load restores.
kamidori.boot.data_readyINIT2INIT2's exit. Every data table is built: the 28 base *INIT scripts, each mounted append's $n$AUTORUN and its $n$*INIT layers (op 0x143), and INIT2's own work after them, which reads the tables (kamidori.boot.data_layered). An edit made here comes after that work. The tables lie above the saved prefix (0xfd40f): a load zeroes them, the prologue builds them again, and control reaches here again while the load restores.
kamidori.stage.after_loaderFIELDEvery layer's map and stage loader has run (mpinit_layer_script_ids and stage_loader_script_ids: MPINIT and STINIT, then each append's) and FIELD has placed nothing yet: the floor's enemy slots, objects and rules hold the stage as authored. current_stage_id is the stage.
kamidori.class_change.rules_runCALCCCEvery rule script of class_change_rule_script_ids has run for current_character_id (CCINIT, then each append's $n$CCINIT), and CALCCC has applied nothing yet: the class change block (class_change_title_priority, class_change_title_out and the class_change_*_delta arrays, the skill slot replacements and the skill learn flags) holds the sum of the rules that fired in this call, each of which has set bit 0 of its column of character_class_change_state. A title priority of 0 means none fired, and CALCCC exits; otherwise it adds the deltas to the character and copies the title into character_class_titles.
kamidori.stage.after_info_reloadINFO3INFO's third tab (INFO3, アイテム情報, which FIELD opens from its menu) has run, for its 獲得地点 view of the selected item, every stage's loaders to find the floors whose dig points yield it (INFO3@0xb88 to 0xc12), and then, on a floor (party_on_field set), put current_stage_id back and run that stage's loaders again (INFO3@0xcdc to 0xd1a): the floor's enemy slots, objects and rules hold the stage as authored, and the units on the field are where they were. Off a floor control does not reach here (INFO3@0xcdc jumps past it), and the loop leaves current_stage_id at 1000. current_stage_id is the floor's stage.
kamidori.stage.after_list_previewSELSTAGEThe stage list (SELSTAGE, the world map's choice of a floor) has put the stage under its cursor into current_stage_id (SELSTAGE@0x13c4) and run that stage's loaders (SELSTAGE@0x13d0 to 0x1405) for its preview, which then reads the enemy slots whose gates pass (from SELSTAGE@0x1a8a). The list does this when it opens (SELSTAGE@0x4d), each time the pointer moves onto another stage's panel (SELSTAGE@0x1d18) or a key or the wheel moves the cursor (0xa03, 0xa61), and when the party screen (ORGANIZE) comes back to the list without setting out (0xcb8). The stage is not being played: nothing is placed, and the loaders write the tables afresh each time. current_stage_id is the stage under the cursor.
kamidori.stage.after_ready_handlersFIELDThe floor's enemies are placed and every layer's ready handler has run (stage_ready_handler_script_ids: STAGEREADY, then each append's).
kamidori.stage.after_round_handlersFIELDThe start of a player turn after the first (current_stage_turn > 1): every layer's round handler has run (stage_round_handler_script_ids).
kamidori.stage.after_close_handlersFIELDThe floor ends and every layer's close handler has run (stage_close_handler_script_ids), after a won floor's rewards. stage_result says how it ended.