exterior_sequence
R10. Directed-opening helper sources
Runtime.set_entity_enabled("intro_reverse_trim", false)
Runtime.set_entity_visible("intro_reverse_trim", false)
Runtime.set_entity_enabled("intro_reverse_rail", false)
Runtime.set_entity_visible("intro_reverse_rail", false)
return trueRuns wind and the exterior cutscene, fades to the Workshop and activates its startup events.
func run(_context: Dictionary = {}) -> Variant:
Runtime.variables["intro_skip_all"] = false
Runtime.change_game_setting("cinematic.letterbox", 0.105)
Runtime.project_data.settings.screenOverlay.enabled = false
Runtime._set_screen_overlay_visible(false)
Runtime.set_gameplay_hud_visible(false)
Runtime.entity_nodes.ada.visible = false
Runtime.show_gui("opening_controls")
Runtime.play_sound("winter_wind", "exterior_wind")
var wind: AudioStreamPlayer = Runtime.media_manager.sound_players.get("exterior_wind")
if is_instance_valid(wind): wind.volume_db = -8.0
await Runtime.start_cutscene("exterior_opening")
if is_instance_valid(wind):
var fade: Tween = Runtime.create_tween()
fade.tween_property(wind, "volume_db", -40.0, 0.5)
Runtime.hide_gui("opening_title")
Runtime.hide_gui("opening_controls")
await Runtime.fade_screen(true, "#080d15", 0.55)
Runtime.stop_sound("exterior_wind")
# Load behind the fade, then reveal before first-enter dialogue starts.
Runtime.playable_character_states["ada"]["sceneId"] = "workshop"
Runtime.playable_character_states["ada"]["position"] = [0,0,2.3]
await Runtime.load_scene("workshop", false, "intro_establish", true)
await Runtime.fade_screen(false, "#080d15", 0.55)
await Runtime._activate_pending_startup_room(Runtime.runtime_generation)
return trueintro_handoff#
Makes natural completion and skipping leave the same playable state; stops voice/sound, releases attachments, restores actors, HUD and wide camera.
func run(_context: Dictionary = {}) -> Variant:
# Normal finish and Skip share exactly the same playable end state.
await DetachObject({"entityId":"ada"})
Runtime.set_meta("clockmaker_handshake_phase", "finished")
Runtime.stop_sound("opening")
Runtime.stop_voice()
Runtime.set_entity_visible("intro_reverse_wall", false)
Runtime.set_entity_visible("intro_reverse_trim", false)
Runtime.set_entity_visible("intro_reverse_rail", false) Runtime.hide_gui("opening_controls")
Runtime.hide_gui("opening_title")
Runtime.hide_gui("cinematic_dialogue")
Runtime.message_session_serial += 1
Runtime.project_data.settings.screenOverlay.enabled = true
Runtime._apply_screen_overlay()
Runtime._set_screen_overlay_visible(true)
Runtime.change_game_setting("cinematic.letterbox", 0.0)
for actor_id: String in ["ada", "elias"]:
var actor: AdventureActor = Runtime.entity_nodes.get(actor_id) as AdventureActor
if actor != null:
actor.stop_moving()
actor.animation_state_records["walk"]["speed"] = 1.0
Runtime.entity_defs[actor_id]["character"]["walkSoundStride"] = 0.8