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.

stage_enemy

Record table of Kamidori Alchemy Meister, records 0 to 29, 15 fields.

The current stage's enemy slots. STINIT, then each append's $n$STINIT, the stage loaders FIELD calls (FIELD@0x50c), zero all 30 slots of each array and write the stage's. FIELD places slots 1 to 29 at a floor's start (FIELD@0xa9d) and spawns from them later in the floor (reinforcements, FIELD@0xa040); ADDEN and CHANGEEN read them too, and SETEN copies a slot's routines into its unit. SELSTAGE, ORGANIZE, INFO3, ARENA and INIT2 at a load run the loaders as well. A data file reaches it through the stage scope.

The game builds it when a stage loads, so a data file reaches it through the scope stage (ids 1 to 999): record r of stage id is [stage.id.enemy.r], and a field stage.id.enemy.r.field.

The scope stage: A stage, by current_stage_id. STINIT's stages are 1 to 968 and the appends' reach 977, and the per-stage arrays hold 1,000 (stage_display_names). kamidori-base applies a scoped table at kamidori.stage.loaded and kamidori.stage.previewed, whose stage is the id.

The database lists it: each of the stages lists its enemies.

Fields

Each field is a global, one cell per record, named under the field. The last column is what a data file may write to it, as the base mod kamidori-base’s shape says.

Field and its globalTypeRefers toIn a data file
spawn_tile_xstage_enemy_spawn_tile_xint[30]—yes: a whole number
spawn_tile_ystage_enemy_spawn_tile_yint[30]—yes: a whole number
spawn_object_slotstage_enemy_spawn_object_slotint[30]—yes: a whole number
faction_idstage_enemy_faction_idint[30]—yes: a whole number
difficulty_maskstage_enemy_difficulty_maskint[30]—yes: a whole number
first_visit_onlystage_enemy_first_visit_onlyint[30]—yes: a whole number
random_selection_weightstage_enemy_random_selection_weightint[30]—yes: a whole number
unit_idstage_enemy_unit_idint[30]unityes: a whole number
min_levelstage_enemy_min_levelint[30]—yes: a whole number
max_levelstage_enemy_max_levelint[30]—yes: a whole number
auto_level_scale_divisorstage_enemy_auto_level_scale_divisorint[30]—yes: a whole number
movement_routine_set_idsstage_enemy_movement_routine_set_idsint[30][3]—yes: a row of 3 columns by number, 0 to 2; write movement_routine_set_ids.<number> = ...
battle_routine_set_idsstage_enemy_battle_routine_set_idsint[30][3]—yes: a row of 3 columns by number, 0 to 2; write battle_routine_set_ids.<number> = ...
required_story_flagsstage_enemy_required_story_flagsint[30][7]—yes: a row of 7 columns by number, 0 to 6; write required_story_flags.<number> = ...
forbidden_story_flagsstage_enemy_forbidden_story_flagsint[30][5]—yes: a row of 5 columns by number, 0 to 4; write forbidden_story_flags.<number> = ...