SCJUMP
Script SCJUMP.BIN of Himegari Dungeon Meister: id 0x3346, 29790 instructions, fingerprint dc21489e30c9.
Layers over it: $1$SCJUMP.
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 1530 reads, 0 writes and 0 indexes more.
| Global | Reads | Writes | Indexes |
|---|---|---|---|
entity_unit_definition_ids | 0 | 0 | 2209 |
acting_entity_index | 1830 | 0 | 0 |
target_entity_index | 1757 | 0 | 0 |
scjump_decision_out | 0 | 1755 | 0 |
system_flow_request | 0 | 1755 | 0 |
current_stage_id | 1609 | 0 | 0 |
story_event_flags | 1477 | 0 | 0 |
current_faction_id | 1223 | 0 | 0 |
entity_faction_ids | 0 | 0 | 694 |
battle_outcome_flags | 530 | 0 | 0 |
entity_tile_x | 0 | 0 | 342 |
entity_tile_y | 0 | 0 | 342 |
scjump_progress_d | 168 | 0 | 0 |
current_stage_turn | 42 | 0 | 0 |
game_started | 16 | 0 | 0 |
chapter_mode | 9 | 0 | 0 |
lily_form_a | 4 | 0 | 0 |
party_slot_flags | 1 | 0 | 0 |
unit_current_levels | 1 | 0 | 0 |