stage_object
Record table of Kamidori Alchemy Meister, records 0 to 49, 12 fields.
The current stage's map objects, slots 1 to 49 (SETOBJ@0x2a and SELSTAGE@0x17d4 walk them). STINIT, then each append's $n$STINIT, write them with the rest of the stage. An object's type is an OBINIT type (the object_type_* arrays). A 採取 point (type 0x20) or 発掘 point (type 0x21) gathers from dig table (type - 0x20) * 100 + primary_param: SELSTAGE@0x1825 lists that table's items on the stage select screen, and FIELD@0x897e rolls from it secondary_param times when the point is used. 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.object.r], and a field stage.id.object.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 dig sites.
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 global | Type | Refers to | In a data file |
|---|---|---|---|
tile_xstage_object_tile_x | int[50] | — | yes: a whole number |
tile_ystage_object_tile_y | int[50] | — | yes: a whole number |
type_idstage_object_type_id | int[50] | dig_table | yes: a whole number |
base_valuestage_object_base_value | int[50] | — | yes: a whole number |
primary_paramstage_object_primary_param | int[50] | — | yes: a whole number |
secondary_paramstage_object_secondary_param | int[50] | — | yes: a whole number |
reinforcement_interval_turnsstage_object_reinforcement_interval_turns | int[50] | — | yes: a whole number |
reinforcement_spawn_limitstage_object_reinforcement_spawn_limit | int[50] | — | yes: a whole number |
difficulty_maskstage_object_difficulty_mask | int[50] | — | yes: a whole number |
required_story_flagsstage_object_required_story_flags | int[50][7] | — | yes: a row of 7 columns by number, 0 to 6; write required_story_flags.<number> = ... |
forbidden_story_flagsstage_object_forbidden_story_flags | int[50][5] | — | yes: a row of 5 columns by number, 0 to 4; write forbidden_story_flags.<number> = ... |
use_story_flags_by_factionstage_object_use_story_flags_by_faction | int[50][5] | — | yes: a row of 5 columns by number, 0 to 4; write use_story_flags_by_faction.<number> = ... |