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.

Himegari Dungeon Meister patch points

The named instructions of Himegari Dungeon Meister’s scripts where a mod’s fragment or Lua hook goes: 9. 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
himegari.experience.after_calculationADDEXPThe award is final and not yet applied. L[0x1] holds the experience the unit receives: G[0x62ccb] after the G[0x3302] multiplier bits (0x10 zero, 0x20 double, 0x40 tenfold). current_unit_id is the canonical unit. All three multiplier paths jump here, so before site sees every award and may rewrite L[0x1].
himegari.boot.data_layeredINIT2The instruction after op 0x143 (INIT2@0x17f), before INIT2 calls TUNE. Every layer has written its data: the base *INIT scripts, then each mounted append's $n$AUTORUN and its $n$*INIT layers. The boot has not used the tables yet. TUNE comes next: it lowers each saved tuning level to fit its item's curve (item_tuning_curve_ids, item_tuning_stat_bonus_curves), runs CALCREVISE when G[0x767b] is set, and raises item_inventory_counts to the party's items, so it corrects the save against an edit made here as it does against an append's. The tables lie above the saved prefix (0x6241b): a load zeroes them, the prologue builds them again, and control reaches here again while the load restores.
himegari.boot.data_readyINIT2INIT2's exit. Every data table is built: the base *INIT scripts, each mounted append's $n$AUTORUN and its $n$*INIT layers (op 0x143), and TUNE has corrected the saved tuning levels and inventory counts against them (himegari.boot.data_layered). An edit made here comes after that correction. The tables lie above the saved prefix (0x6241b): a load zeroes them, the prologue builds them again, and control reaches here again while the load restores.
himegari.stage.after_loaderFIELDThe stage's loader has run (stage_loader_script_ids[current_stage_id]: STINIT, or an append's $1$STINIT) and FIELD has placed nothing yet: the 30 stage_enemy_* slots, the objects and the rules hold the stage as authored, and FIELD reads them next to place the enemies (slots 1..29, through SETEN). FIELD skips the loader, and this point, when G[0x767d] is 1.
himegari.stage.after_ready_handlersFIELDThe enemies are placed and every layer's ready handler has run (column 0 of stage_event_handler_script_ids: READY, then $1$READY). current_stage_id is the stage.
himegari.stage.after_round_handlersFIELDThe start of a player turn after the first (current_stage_turn > 1, current_faction_id 1): every layer's round handler has run (column 2: ROUND, then $1$ROUND).
himegari.stage.after_close_handlers_wonFIELDThe stage is won (stage_result 1) and every layer's close handler has run (column 1: CLOSE, then $1$CLOSE); STAGECLEAR runs next.
himegari.stage.after_close_handlers_lostFIELDThe stage is lost (stage_result 2) and every layer's close handler has run (column 1: CLOSE, then $1$CLOSE).
himegari.class_change.rules_runCALCCCEvery rule script of class_change_rule_script_ids has run for current_unit_id (CCINIT, then the append's $1$CCINIT), and CALCCC has applied nothing yet: the class change block (class_change_selected_level, class_change_title_output, class_change_deployment_cost_delta, class_change_stat_bonuses and class_change_skill_awards) holds what the rules that fired in this call gave, each of which has marked its column of class_change_state_work. A level of 0 means none fired, and CALCCC exits; otherwise it copies the state back into unit_class_change_state and applies the title, the cost, the stats and the skills to the unit.