stage_goal
Record table of Himegari Dungeon Meister, records 0 to 0, 4 fields.
The current stage's victory and defeat conditions as AIM shows them: STINIT writes the four lines for the stage it loads. 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.goal.r], and a field stage.id.goal.r.field.
The scope stage: A stage, by current_stage_id. STINIT's stages are 1 to 170, and the per-stage arrays hold 1,000 (stage_loader_script_ids). himegari-base applies a scoped table at himegari.stage.loaded, whose stage is the id.
The database lists it: each of the stages lists its goals.
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 himegari-base’s shape says.
| Field and its global | Type | Refers to | In a data file |
|---|---|---|---|
victory_condition_1stage_victory_condition_1 | string | — | yes: text the save's code page (932) can encode |
victory_condition_2stage_victory_condition_2 | string | — | yes: text the save's code page (932) can encode |
defeat_condition_1stage_defeat_condition_1 | string | — | yes: text the save's code page (932) can encode |
defeat_condition_2stage_defeat_condition_2 | string | — | yes: text the save's code page (932) can encode |