$1$SCJUMP
Script $1$SCJUMP.BIN of Himegari Dungeon Meister: id 0x1000018, 1050 instructions, fingerprint 613808bda125.
A layer: the game mounts it over SCJUMP, the base script it writes over.
What its base script does, from OME’s notes on it:
The progression state machine: it decides what comes next in the story. A switch on chapter_mode picks a block for each of the nine chapters, a tree of tests on the stage, the faction, the battle's outcome, story flags and a random roll, and each of its 1,755 decision sites writes its decision to scjump_decision_out.
Source: docs/scjump-progression.md (Mechanism)
Its caller sets these globals before the call:
| Global | What it holds |
|---|---|
chapter_mode | the chapter whose block decides |
current_stage_id | the stage just played |
battle_outcome_flags | how the battle ended: the target defeated, the actor defeated, or both alive |
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. Cells no global names yet take 89 reads, 0 writes and 0 indexes more.
| Global | Reads | Writes | Indexes |
|---|---|---|---|
current_stage_id | 70 | 0 | 0 |
scjump_decision_out | 0 | 70 | 0 |
system_flow_request | 0 | 70 | 0 |
current_faction_id | 65 | 0 | 0 |
target_entity_index | 46 | 0 | 0 |
entity_unit_definition_ids | 0 | 0 | 38 |
acting_entity_index | 32 | 0 | 0 |
scjump_progress_d | 29 | 0 | 0 |
entity_faction_ids | 0 | 0 | 27 |
battle_outcome_flags | 24 | 0 | 0 |
chapter_mode | 9 | 0 | 0 |
entity_tile_y | 0 | 0 | 7 |
entity_tile_x | 0 | 0 | 6 |