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.

STINIT

Script STINIT.BIN of Kamidori Alchemy Meister: id 0x4527, 44463 instructions, fingerprint a1a7bfc4dbda.

Layers over it: $1$STINIT, $2$STINIT, $3$STINIT.

The per-stage loader: it writes the tables of the stage in current_stage_id (its enemy and ally slots, objects and rules), which FIELD, SELSTAGE's preview and INFO3 run before they read them. It is reached through stage_loader_script_ids, each layer's loader in turn, not by a constant call.

Source: docs/kamidori-data-tables.md (Stage catalog and per-stage loader); the patch point kamidori.stage.after_loader

Its caller sets these globals before the call:

GlobalWhat it holds
current_stage_idthe stage whose tables it writes

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.

GlobalReadsWritesIndexes
stage_object_tile_x027331
stage_object_tile_y027331
stage_object_type_id027331
stage_object_difficulty_mask027241
stage_objective_texts021720
stage_enemy_battle_routine_set_ids002054
stage_enemy_max_level020531
stage_enemy_min_level020531
stage_enemy_movement_routine_set_ids002054
stage_enemy_unit_id020531
stage_enemy_auto_level_scale_divisor019831
stage_enemy_difficulty_mask019781
stage_enemy_spawn_tile_x015171
stage_enemy_spawn_tile_y015171
stage_object_primary_param015151
stage_enemy_faction_id011881
stage_map_texture_asset_overrides09491
stage_ally_start_tile_x08651
stage_ally_start_tile_y08651
stage_description_lines07240
stage_reward_condition_texts07240
stage_enemy_spawn_object_slot05741
stage_enemy_random_selection_weight05731
stage_object_reinforcement_interval_turns05511
stage_object_reinforcement_spawn_limit05511
stage_object_secondary_param04461
stage_ally_forced_unit_id03421
stage_object_use_story_flags_by_faction02941
stage_background_texture_asset_ids02881
stage_enemy_required_story_flags02711
stage_enemy_first_visit_only02691
stage_object_forbidden_story_flags02681
stage_ally_forced_first_visit_only02491
stage_turn_limit02331
stage_object_required_story_flags02241
current_stage_id18100
stage_bgm_id01810
stage_first_visit_party_restriction01810
stage_keep_conditions_on_revisit01810
stage_map_tint_color01810
stage_reward_row_required_story_flags01351
stage_object_base_value01061
stage_victory_story_flag01070
stage_turn_limit_outcome01051
stage_defeat_base_loss_mode0980
stage_faction_alliance0971
stage_defeat_story_flag0830
stage_ally_slot_required_story_flags0491
stage_victory_capture_object_slots0131
stage_ally_slot_forbidden_story_flags0121
stage_enemy_forbidden_story_flags0111
stage_victory_defeat_unit0110