Phase 4c: Gauntlet-Klimax - Marens Tod, Wahrheit 1 & 2, Trauer-Wahl

- StorySystem mit erster Beat-Logik: Kette gauntlet_started ->
  maren_intervention -> maren_death -> truth_1_revealed ->
  truth_2_revealed -> gauntlet_completed, nur vorwaerts, als Story-Flag
  gespeichert (ueberlebt Save/Load)
- Gauntlet-Lauf (scenes/gauntlet): Kletterlauf mit Sprung-, Kletter- und
  Balken-Passagen; die Manipulation der Nordroute ist sichtbar (verkanteter
  Abschnitt, im Auftakt-Dialog benannt: ungepruefte Halterungen,
  schlechteste Startzeiten); 4 Checkpoints + KillZone - Permadeath betrifft
  ausschliesslich Tyrveils eigene Stuerze
- Marens Tod ist FIX und Permadeath-unabhaengig: Intervention (nicht
  abbrechbar), Einsturz rettet Wren, Sterbeszene liefert Wahrheit 1
  (Aussonderung, mit ihrem Hoffnungsdreh) und Wahrheit 2 (General Robert
  Rowyth, kein Deserteur, umgekehrt fuer eingeschlossene Kinder, Geschichte
  zu Kinder-als-Ausrede umgedreht) in Marens Stimme - Angst, Witz,
  Nicht-dienstags-Callback; bewusst sterbend statt per Brief, ohne
  Kinder-Namen (Wrens und Imogens Momente bleiben spaeteren Phasen)
- Trauer-Wahl direkt nach dem Tod: Klinge (kalte Wut) -15 Ton / Standing
  +2, Herz (Buendeln der Trauernden) +15 Ton / Standing +5 - staerkster
  Ton-Ausschlag des Slices; Flag gauntlet_grief, Wren-Beziehung +1/+3
- Wren erschuettert, aber sicher; bleibt in Tyrveils Naehe (STORY Akt 2),
  kein Vorgriff auf sein spaeteres Wissen
- Hub: Gauntlet-Eingang im Quadranten, Maren verschwindet nach dem
  Wendepunkt aus dem Hub, Overlay zeigt den Gauntlet-Beat
- Uebergangs-Platzhalter Richtung Dreschen (Phase 5) am Ende des Laufs
- Headless verifiziert (30 Checks): komplette Beat-Kette, beide
  Trauer-Wege, Marens Tod bei Permadeath AUS und AN, Respawn/Game-Over
  nur fuer Tyrveil, Hub-Folgen, Save/Load der Beats

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-07-06 17:25:17 +02:00
parent 7a4ed2d6dc
commit 77c905de62
11 changed files with 778 additions and 6 deletions

View file

@ -0,0 +1,47 @@
{
"id": "gauntlet_death",
"start": "downed",
"can_abort": false,
"speakers": {
"maren": "Maren",
"wren": "Wren",
"player": "Tyrveil"
},
"nodes": {
"downed": {
"speaker": "maren",
"text": "Nicht so ein Gesicht, Rowyth. Ich kenne dieses Gefälle besser als du. Bin nur... ungünstig gelandet.",
"next": "truth_one"
},
"truth_one": {
"speaker": "maren",
"text": "Hör zu. Einmal, ganz. Die Zeiten. Die Routen. Die Paarungen. Das ist kein Pech — sie rechnen mit unseren Leichen. Heute hätten sie zwei bekommen. Aber wer das System sieht, kann es unterlaufen. Also sieh hin. Versprich mir das.",
"next": "truth_two"
},
"truth_two": {
"speaker": "maren",
"text": "Und jetzt das, was ich dir zu lange schuldig war. Dein Vater. Robert war kein Deserteur. Er hatte Rang, eine Truppe, ein Leben — und hinter den brechenden Linien saßen Kinder fest. Er ist umgekehrt. Er hat ihnen mit seinem Leben die Flucht gekauft. Und dann haben sie die Geschichte umgedreht: Kinder als Ausrede. Die Wahrheit ist das genaue Gegenteil, Tyrveil. Das genaue Gegenteil.",
"next": "fear"
},
"fear": {
"speaker": "maren",
"text": "Es ist kalt. Das dürft ihr ruhig wissen — Drittjahre haben auch Angst. Man geht trotzdem.",
"next": "tea"
},
"tea": {
"speaker": "maren",
"text": "Ich habe Tee mit ihm getrunken, weißt du noch? Er stand da wie du. Genau wie du. ... Welcher Tag ist heute, Calloran?",
"next": "wren_answer"
},
"wren_answer": {
"speaker": "wren",
"text": "D-Donnerstag. Es ist Donnerstag, Maren.",
"next": "last_words"
},
"last_words": {
"speaker": "maren",
"text": "Gut. ... Nicht dienstags.",
"next": null
}
}
}

View file

@ -0,0 +1,48 @@
{
"id": "gauntlet_grief",
"start": "why",
"can_abort": false,
"speakers": {
"wren": "Wren",
"player": "Tyrveil"
},
"nodes": {
"why": {
"speaker": "wren",
"text": "Sie hat mich weggestoßen. ICH war auf der Platte, ich war zu langsam — warum hat sie nicht einfach... warum ich?",
"options": [
{
"text": "Weil sie wusste, was sie tat. Merk dir jeden, der diese Route freigegeben hat, Wren. Ich vergesse keinen davon.",
"blade_heart": -15,
"relationship": { "wren": 1 },
"faction_standing": { "gezeichnete": 2 },
"story_flag": { "gauntlet_grief": "blade" },
"next": "blade_reply"
},
{
"text": "Weil du es ihr wert warst. Das tragen wir jetzt — alle, zusammen. Komm, wir holen die anderen: Heute trauert niemand allein.",
"blade_heart": 15,
"relationship": { "wren": 3 },
"faction_standing": { "gezeichnete": 5 },
"story_flag": { "gauntlet_grief": "heart" },
"next": "heart_reply"
}
]
},
"blade_reply": {
"speaker": "wren",
"text": "Okay. ... Okay. Dann stehe ich neben dir, wenn du sie findest. Sie hat gesagt, es war nicht umsonst. Dann darf es das auch nicht werden.",
"next": "closing"
},
"heart_reply": {
"speaker": "wren",
"text": "Zusammen. Ja. Sie hat immer gesagt, wir haben nur einander. ... Es war nicht umsonst. Du sorgst dafür, oder?",
"next": "closing"
},
"closing": {
"speaker": "wren",
"text": "Ich bleibe in deiner Nähe, Tyrveil. Nur... nur fürs Erste. Bitte.",
"next": null
}
}
}

View file

@ -0,0 +1,27 @@
{
"id": "gauntlet_intervention",
"start": "warning",
"can_abort": false,
"speakers": {
"maren": "Maren",
"wren": "Wren",
"player": "Tyrveil"
},
"nodes": {
"warning": {
"speaker": "maren",
"text": "HALT! Calloran, STEHENBLEIBEN—! Die Verankerung da vorn ist gelöst. Sauber gelöst, alle vier Bolzen. Das ist keine vergessene Wartung. Das ist Absicht — und ich Idiotin sehe es erst jetzt.",
"next": "wren_panic"
},
"wren_panic": {
"speaker": "wren",
"text": "Es knirscht— Maren, die Platte, es BRICHT—!",
"next": "maren_leap"
},
"maren_leap": {
"speaker": "maren",
"text": "HAB DICH—!",
"next": null
}
}
}

View file

@ -0,0 +1,27 @@
{
"id": "gauntlet_start",
"start": "briefing",
"can_abort": false,
"speakers": {
"maren": "Maren",
"wren": "Wren",
"player": "Tyrveil"
},
"nodes": {
"briefing": {
"speaker": "maren",
"text": "Da seid ihr. Sie haben euch die Nordroute gegeben — die mit den neuen Halterungen, die seit Wochen niemand prüft. Und die besten Startzeiten waren natürlich schon vergeben. Wie immer.",
"next": "wren_worry"
},
"wren_worry": {
"speaker": "wren",
"text": "Die anderen sagen, die Nordroute holt sich jedes Jahr zwei. Das... das ist ein Witz, oder? Sag, dass das ein Witz ist.",
"next": "maren_order"
},
"maren_order": {
"speaker": "maren",
"text": "Es ist keiner. Also bleibt ihr beide in meiner Sichtlinie. Rowyth: Du kletterst, ich zähle mit. Und Calloran — atmen. Du machst das seit dem Viadukt schon viel besser.",
"next": null
}
}
}

View file

@ -0,0 +1,416 @@
[gd_scene load_steps=44 format=3]
[ext_resource type="Script" path="res://scripts/gameplay/gauntlet.gd" id="1_gauntlet"]
[ext_resource type="PackedScene" path="res://scenes/player.tscn" id="2_player"]
[ext_resource type="PackedScene" path="res://scenes/ui/debug_overlay.tscn" id="3_debug"]
[ext_resource type="Script" path="res://scripts/gameplay/zone_trigger.gd" id="4_zone"]
[ext_resource type="PackedScene" path="res://scenes/ui/speech_bubble.tscn" id="5_bubble"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_sky"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
[sub_resource type="Sky" id="Sky_sky"]
sky_material = SubResource("ProceduralSkyMaterial_sky")
[sub_resource type="Environment" id="Environment_env"]
background_mode = 2
sky = SubResource("Sky_sky")
tonemap_mode = 2
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_stone"]
albedo_color = Color(0.42, 0.42, 0.44, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_platform8"]
size = Vector3(8, 1, 8)
[sub_resource type="BoxMesh" id="BoxMesh_platform8"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(8, 1, 8)
[sub_resource type="BoxShape3D" id="BoxShape3D_walk10"]
size = Vector3(2, 1, 10)
[sub_resource type="BoxMesh" id="BoxMesh_walk10"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 1, 10)
[sub_resource type="BoxShape3D" id="BoxShape3D_wall2"]
size = Vector3(2, 2, 2)
[sub_resource type="BoxMesh" id="BoxMesh_wall2"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 2, 2)
[sub_resource type="BoxShape3D" id="BoxShape3D_elev210"]
size = Vector3(2, 2, 10)
[sub_resource type="BoxMesh" id="BoxMesh_elev210"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 2, 10)
[sub_resource type="BoxShape3D" id="BoxShape3D_elev28"]
size = Vector3(2, 2, 8)
[sub_resource type="BoxMesh" id="BoxMesh_elev28"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 2, 8)
[sub_resource type="BoxShape3D" id="BoxShape3D_beam14"]
size = Vector3(1, 1, 14)
[sub_resource type="BoxMesh" id="BoxMesh_beam14"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(1, 1, 14)
[sub_resource type="BoxShape3D" id="BoxShape3D_plat48"]
size = Vector3(4, 1, 8)
[sub_resource type="BoxMesh" id="BoxMesh_plat48"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(4, 1, 8)
[sub_resource type="BoxShape3D" id="BoxShape3D_elev26"]
size = Vector3(2, 2, 6)
[sub_resource type="BoxMesh" id="BoxMesh_elev26"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 2, 6)
[sub_resource type="BoxShape3D" id="BoxShape3D_elev46"]
size = Vector3(2, 4, 6)
[sub_resource type="BoxMesh" id="BoxMesh_elev46"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 4, 6)
[sub_resource type="BoxShape3D" id="BoxShape3D_landing"]
size = Vector3(2, 1, 6)
[sub_resource type="BoxMesh" id="BoxMesh_landing"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 1, 6)
[sub_resource type="BoxShape3D" id="BoxShape3D_tilt"]
size = Vector3(2, 0.5, 4)
[sub_resource type="BoxMesh" id="BoxMesh_tilt"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 0.5, 4)
[sub_resource type="BoxShape3D" id="BoxShape3D_bypass"]
size = Vector3(1, 1, 12)
[sub_resource type="BoxMesh" id="BoxMesh_bypass"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(1, 1, 12)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_maren"]
albedo_color = Color(0.55, 0.6, 0.75, 1)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_maren"]
material = SubResource("StandardMaterial3D_maren")
radius = 0.4
height = 1.8
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_wren"]
albedo_color = Color(0.45, 0.72, 0.45, 1)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_wren"]
material = SubResource("StandardMaterial3D_wren")
radius = 0.4
height = 1.8
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_npc"]
radius = 0.4
height = 1.8
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_trigger"]
transparency = 1
albedo_color = Color(0.3, 0.8, 1, 0.35)
[sub_resource type="BoxShape3D" id="BoxShape3D_trigger"]
size = Vector3(2, 2, 2)
[sub_resource type="BoxMesh" id="BoxMesh_trigger"]
material = SubResource("StandardMaterial3D_trigger")
size = Vector3(2, 2, 2)
[sub_resource type="BoxShape3D" id="BoxShape3D_killzone"]
size = Vector3(60, 6, 140)
[sub_resource type="BoxShape3D" id="BoxShape3D_checkpoint"]
size = Vector3(3, 2, 2)
[node name="Gauntlet" type="Node3D"]
script = ExtResource("1_gauntlet")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_env")
[node name="Sun" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.866025, 0.383022, -0.321394, 0, 0.642788, 0.766044, 0.5, -0.663414, 0.55667, 0, 12, 0)
shadow_enabled = true
[node name="StartPlatform" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="StartPlatform"]
shape = SubResource("BoxShape3D_platform8")
[node name="MeshInstance3D" type="MeshInstance3D" parent="StartPlatform"]
mesh = SubResource("BoxMesh_platform8")
[node name="WalkA" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -9)
[node name="CollisionShape3D" type="CollisionShape3D" parent="WalkA"]
shape = SubResource("BoxShape3D_walk10")
[node name="MeshInstance3D" type="MeshInstance3D" parent="WalkA"]
mesh = SubResource("BoxMesh_walk10")
[node name="ClimbWallA" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -15)
[node name="CollisionShape3D" type="CollisionShape3D" parent="ClimbWallA"]
shape = SubResource("BoxShape3D_wall2")
[node name="MeshInstance3D" type="MeshInstance3D" parent="ClimbWallA"]
mesh = SubResource("BoxMesh_wall2")
[node name="ElevA" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -21)
[node name="CollisionShape3D" type="CollisionShape3D" parent="ElevA"]
shape = SubResource("BoxShape3D_elev210")
[node name="MeshInstance3D" type="MeshInstance3D" parent="ElevA"]
mesh = SubResource("BoxMesh_elev210")
[node name="ElevB" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -31.8)
[node name="CollisionShape3D" type="CollisionShape3D" parent="ElevB"]
shape = SubResource("BoxShape3D_elev28")
[node name="MeshInstance3D" type="MeshInstance3D" parent="ElevB"]
mesh = SubResource("BoxMesh_elev28")
[node name="BeamC" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -43)
[node name="CollisionShape3D" type="CollisionShape3D" parent="BeamC"]
shape = SubResource("BoxShape3D_beam14")
[node name="MeshInstance3D" type="MeshInstance3D" parent="BeamC"]
mesh = SubResource("BoxMesh_beam14")
[node name="PlatformC" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -56)
[node name="CollisionShape3D" type="CollisionShape3D" parent="PlatformC"]
shape = SubResource("BoxShape3D_plat48")
[node name="MeshInstance3D" type="MeshInstance3D" parent="PlatformC"]
mesh = SubResource("BoxMesh_plat48")
[node name="ClimbWallB" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -61)
[node name="CollisionShape3D" type="CollisionShape3D" parent="ClimbWallB"]
shape = SubResource("BoxShape3D_wall2")
[node name="MeshInstance3D" type="MeshInstance3D" parent="ClimbWallB"]
mesh = SubResource("BoxMesh_wall2")
[node name="ElevC" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -65)
[node name="CollisionShape3D" type="CollisionShape3D" parent="ElevC"]
shape = SubResource("BoxShape3D_elev26")
[node name="MeshInstance3D" type="MeshInstance3D" parent="ElevC"]
mesh = SubResource("BoxMesh_elev26")
[node name="ClimbWallC" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -69)
[node name="CollisionShape3D" type="CollisionShape3D" parent="ClimbWallC"]
shape = SubResource("BoxShape3D_wall2")
[node name="MeshInstance3D" type="MeshInstance3D" parent="ClimbWallC"]
mesh = SubResource("BoxMesh_wall2")
[node name="ElevD" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, -73)
[node name="CollisionShape3D" type="CollisionShape3D" parent="ElevD"]
shape = SubResource("BoxShape3D_elev46")
[node name="MeshInstance3D" type="MeshInstance3D" parent="ElevD"]
mesh = SubResource("BoxMesh_elev46")
[node name="LandingE" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -79)
[node name="CollisionShape3D" type="CollisionShape3D" parent="LandingE"]
shape = SubResource("BoxShape3D_landing")
[node name="MeshInstance3D" type="MeshInstance3D" parent="LandingE"]
mesh = SubResource("BoxMesh_landing")
[node name="CollapsingSection" type="Node3D" parent="."]
[node name="TiltA" type="StaticBody3D" parent="CollapsingSection"]
transform = Transform3D(1, 0, 0, 0, 0.992809, 0.119712, 0, -0.119712, 0.992809, 0, 0.1, -84.5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="CollapsingSection/TiltA"]
shape = SubResource("BoxShape3D_tilt")
[node name="MeshInstance3D" type="MeshInstance3D" parent="CollapsingSection/TiltA"]
mesh = SubResource("BoxMesh_tilt")
[node name="TiltB" type="StaticBody3D" parent="CollapsingSection"]
transform = Transform3D(1, 0, 0, 0, 0.992809, -0.119712, 0, 0.119712, 0.992809, 0, -0.1, -88.5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="CollapsingSection/TiltB"]
shape = SubResource("BoxShape3D_tilt")
[node name="MeshInstance3D" type="MeshInstance3D" parent="CollapsingSection/TiltB"]
mesh = SubResource("BoxMesh_tilt")
[node name="BypassBeam" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.2, -0.5, -88)
[node name="CollisionShape3D" type="CollisionShape3D" parent="BypassBeam"]
shape = SubResource("BoxShape3D_bypass")
[node name="MeshInstance3D" type="MeshInstance3D" parent="BypassBeam"]
mesh = SubResource("BoxMesh_bypass")
[node name="FinalPlatform" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -98)
[node name="CollisionShape3D" type="CollisionShape3D" parent="FinalPlatform"]
shape = SubResource("BoxShape3D_platform8")
[node name="MeshInstance3D" type="MeshInstance3D" parent="FinalPlatform"]
mesh = SubResource("BoxMesh_platform8")
[node name="Maren" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.5, 0, -2)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Maren"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
shape = SubResource("CapsuleShape3D_npc")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Maren"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
mesh = SubResource("CapsuleMesh_maren")
[node name="NameLabel" type="Label3D" parent="Maren"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.2, 0)
billboard = 1
text = "Maren"
font_size = 64
outline_size = 16
[node name="SpeechBubble" parent="Maren" instance=ExtResource("5_bubble")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.8, 0)
[node name="Wren" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0, -80)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Wren"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
shape = SubResource("CapsuleShape3D_npc")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Wren"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
mesh = SubResource("CapsuleMesh_wren")
[node name="NameLabel" type="Label3D" parent="Wren"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.2, 0)
billboard = 1
text = "Wren"
font_size = 64
outline_size = 16
[node name="SpeechBubble" parent="Wren" instance=ExtResource("5_bubble")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.8, 0)
[node name="Checkpoints" type="Node3D" parent="."]
[node name="Checkpoint1" type="Area3D" parent="Checkpoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -5)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Checkpoints/Checkpoint1"]
shape = SubResource("BoxShape3D_checkpoint")
[node name="Checkpoint2" type="Area3D" parent="Checkpoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -37)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Checkpoints/Checkpoint2"]
shape = SubResource("BoxShape3D_checkpoint")
[node name="Checkpoint3" type="Area3D" parent="Checkpoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -53)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Checkpoints/Checkpoint3"]
shape = SubResource("BoxShape3D_checkpoint")
[node name="Checkpoint4" type="Area3D" parent="Checkpoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -77)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Checkpoints/Checkpoint4"]
shape = SubResource("BoxShape3D_checkpoint")
[node name="InterventionTrigger" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -81.5)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="InterventionTrigger"]
shape = SubResource("BoxShape3D_checkpoint")
[node name="KillZone" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -10, -50)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="KillZone"]
shape = SubResource("BoxShape3D_killzone")
[node name="EndTrigger" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -99)
collision_layer = 0
collision_mask = 2
script = ExtResource("4_zone")
target_scene_path = "res://scenes/hub/rider_quadrant.tscn"
[node name="CollisionShape3D" type="CollisionShape3D" parent="EndTrigger"]
shape = SubResource("BoxShape3D_trigger")
[node name="MeshInstance3D" type="MeshInstance3D" parent="EndTrigger"]
mesh = SubResource("BoxMesh_trigger")
[node name="Label3D" type="Label3D" parent="EndTrigger"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
billboard = 1
text = "Zum Sammelplatz — das Dreschen wartet"
font_size = 40
outline_size = 12
[node name="Player" parent="." instance=ExtResource("2_player")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 2)
[node name="DebugOverlay" parent="." instance=ExtResource("3_debug")]

View file

@ -477,6 +477,26 @@ text = "Zum Kartenraum"
font_size = 48
outline_size = 12
[node name="TriggerGauntlet" type="Area3D" parent="Triggers"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 19)
collision_layer = 0
collision_mask = 2
script = ExtResource("5_zone")
target_scene_path = "res://scenes/gauntlet/gauntlet.tscn"
[node name="CollisionShape3D" type="CollisionShape3D" parent="Triggers/TriggerGauntlet"]
shape = SubResource("BoxShape3D_trigger")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Triggers/TriggerGauntlet"]
mesh = SubResource("BoxMesh_trigger")
[node name="Label3D" type="Label3D" parent="Triggers/TriggerGauntlet"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
billboard = 1
text = "Zum Gauntlet"
font_size = 48
outline_size = 12
[node name="TriggerClassroom" type="Area3D" parent="Triggers"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 1, -19)
collision_layer = 0

View file

@ -1,8 +1,50 @@
extends Node
## Story-Beats und Story-Flags (Autoload, SPEC.md Abschnitt 8).
##
## Steuert ab Phase 3 den Fortschritt entlang der v1-Akt-Struktur (STORY.md
## Abschnitt 5): Viadukt, die Tage, Gauntlet, Trauer und Entschluss,
## Dreschen, Teaser. Beats und Flags liegen daten-getrieben in data/story;
## erfundene Handlung über STORY.md hinaus ist ausgeschlossen. Phase 0:
## leeres Skelett ohne Logik.
## Erste echte Beat-Logik (Phase 4c): der Gauntlet-Klimax aus STORY.md
## Abschnitt 5 als geordnete Beat-Kette. Der aktuelle Beat liegt als
## Story-Flag im GameState (FLAG_GAUNTLET_BEAT) und reist damit im
## Spielstand mit. advance_gauntlet_beat() bewegt sich nur vorwärts
## entlang der Kette — der Wendepunkt ist unumkehrbar, wie der Verlust,
## den er erzählt. Beat-Bedeutung: gauntlet_started (Lauf betreten),
## maren_intervention (Maren geht dazwischen), maren_death (der Einsturz
## trifft sie — fix, unabhängig von Permadeath), truth_1_revealed /
## truth_2_revealed (ihre letzten Worte), gauntlet_completed (nach der
## Trauer-Entscheidung).
signal gauntlet_beat_changed(new_beat: String)
const FLAG_GAUNTLET_BEAT := "gauntlet_beat"
const GAUNTLET_BEATS: Array[String] = [
"none",
"gauntlet_started",
"maren_intervention",
"maren_death",
"truth_1_revealed",
"truth_2_revealed",
"gauntlet_completed",
]
## Liefert den aktuellen Gauntlet-Beat ("none", wenn noch keiner erreicht).
func get_gauntlet_beat() -> String:
return str(GameState.get_story_flag(FLAG_GAUNTLET_BEAT, "none"))
## Gibt zurück, ob die Kette den angegebenen Beat erreicht oder
## überschritten hat.
func has_reached_beat(beat: String) -> bool:
return GAUNTLET_BEATS.find(get_gauntlet_beat()) >= GAUNTLET_BEATS.find(beat)
## Rückt auf einen späteren Beat der Kette vor; Rückwärts-Sprünge und
## unbekannte Beats werden ignoriert (mit Warnung).
func advance_gauntlet_beat(new_beat: String) -> void:
var new_index := GAUNTLET_BEATS.find(new_beat)
if new_index < 0:
push_warning("Unbekannter Gauntlet-Beat: %s" % new_beat)
return
if new_index <= GAUNTLET_BEATS.find(get_gauntlet_beat()):
return
GameState.set_story_flag(FLAG_GAUNTLET_BEAT, new_beat)
gauntlet_beat_changed.emit(new_beat)

View file

@ -0,0 +1,138 @@
extends Node3D
## Ablauf-Steuerung des Gauntlet-Klimax (Phase 4c, STORY.md Abschnitte 3
## und 5 — Wendepunkt).
##
## Der Lauf der Gezeichneten ist absichtlich tödlicher angelegt
## (Auszahlung von Wahrheit 1): die Nordroute mit ungeprüften Halterungen,
## benannt im Start-Dialog, sichtbar im verkanteten Abschnitt am Ende.
## Marens Tod ist FIX und tritt unabhängig vom Permadeath-Toggle ein —
## das ist Story, kein Fail-State. Permadeath betrifft ausschließlich
## Tyrveils eigene Stürze (KillZone + Checkpoints wie am Viadukt).
## Sequenz beim Erreichen des manipulierten Abschnitts: Intervention
## (Maren geht dazwischen, nicht abbrechbar) -> Einsturz, Wren gerettet,
## Maren getroffen -> Sterbeszene mit Wahrheit 1 und 2 -> Trauer-Wahl
## Klinge/Herz (±15 Ton, Standing +2/+5) -> Beat gauntlet_completed.
## Beat-Kette und Persistenz: StorySystem. Nach dem Wendepunkt (erneutes
## Betreten) ist der Lauf frei begehbar, Maren und Wren sind fort.
const MAIN_MENU_SCENE := "res://scenes/ui/main_menu.tscn"
const START_PATH := "res://data/dialogue/gauntlet_start.json"
const INTERVENTION_PATH := "res://data/dialogue/gauntlet_intervention.json"
const DEATH_PATH := "res://data/dialogue/gauntlet_death.json"
const GRIEF_PATH := "res://data/dialogue/gauntlet_grief.json"
const MAREN_ARRIVAL_POSITION := Vector3(1, 0.1, -80)
const MAREN_FALL_POSITION := Vector3(0.8, 0.1, -81.5)
const WREN_SAFE_POSITION := Vector3(-1, 0.1, -80)
var _checkpoint_position := Vector3.ZERO
var _has_intervention_run := false
var _player: CharacterBody3D
@onready var _maren: Node3D = $Maren
@onready var _wren: Node3D = $Wren
## Verbindet Checkpoints, KillZone und Interventions-Trigger; beim ersten
## Betreten startet der Auftakt-Dialog, nach dem Wendepunkt ist der Lauf
## leer und frei begehbar.
func _ready() -> void:
_player = get_tree().get_first_node_in_group("player")
if _player != null:
_checkpoint_position = _player.global_position
for checkpoint in $Checkpoints.get_children():
checkpoint.body_entered.connect(_on_checkpoint_entered.bind(checkpoint))
$KillZone.body_entered.connect(_on_kill_zone_entered)
if StorySystem.has_reached_beat("maren_death"):
_has_intervention_run = true
_maren.queue_free()
_wren.queue_free()
$CollapsingSection.queue_free()
$InterventionTrigger.queue_free()
return
$InterventionTrigger.body_entered.connect(_on_intervention_entered)
_play_opening()
## Spielt den Auftakt-Dialog kurz nach dem Betreten.
func _play_opening() -> void:
StorySystem.advance_gauntlet_beat("gauntlet_started")
await get_tree().create_timer(0.8).timeout
if _player == null or DialogueSystem.is_dialogue_active:
return
DialogueSystem.start_dialogue(START_PATH, {
"maren": _maren,
"wren": _wren,
DialogueSystem.PLAYER_SPEAKER_ID: _player,
})
## Setzt den Respawn-Punkt auf den erreichten Abschnitts-Checkpoint.
func _on_checkpoint_entered(body: Node3D, checkpoint: Area3D) -> void:
if not body.is_in_group("player"):
return
_checkpoint_position = Vector3(checkpoint.global_position.x, 0.1, checkpoint.global_position.z)
## Sturz in den Abgrund: Game Over bei Permadeath AN, sonst Respawn —
## betrifft nur Tyrveil, nie den Story-Beat.
func _on_kill_zone_entered(body: Node3D) -> void:
if not body.is_in_group("player"):
return
if GameState.is_permadeath_enabled:
print("Game Over — der Gauntlet vergibt keine Fehler.")
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
get_tree().change_scene_to_file.call_deferred(MAIN_MENU_SCENE)
return
body.velocity = Vector3.ZERO
body.global_position = _checkpoint_position
## Startet den Wendepunkt einmalig, sobald Tyrveil den manipulierten
## Abschnitt erreicht.
func _on_intervention_entered(body: Node3D) -> void:
if not body.is_in_group("player"):
return
if _has_intervention_run or DialogueSystem.is_dialogue_active:
return
_has_intervention_run = true
_run_climax(body)
## Spielt den kompletten Wendepunkt als Coroutine: Intervention, Einsturz,
## Sterbeszene mit den Wahrheiten, Trauer-Entscheidung.
func _run_climax(player: CharacterBody3D) -> void:
StorySystem.advance_gauntlet_beat("maren_intervention")
_maren.global_position = MAREN_ARRIVAL_POSITION
DialogueSystem.start_dialogue(INTERVENTION_PATH, {
"maren": _maren,
"wren": _wren,
DialogueSystem.PLAYER_SPEAKER_ID: player,
})
await DialogueSystem.dialogue_finished
$CollapsingSection.queue_free()
_wren.global_position = WREN_SAFE_POSITION
_maren.global_position = MAREN_FALL_POSITION
_lay_maren_down()
StorySystem.advance_gauntlet_beat("maren_death")
DialogueSystem.start_dialogue(DEATH_PATH, {
"maren": _maren,
"wren": _wren,
DialogueSystem.PLAYER_SPEAKER_ID: player,
})
await DialogueSystem.dialogue_finished
StorySystem.advance_gauntlet_beat("truth_1_revealed")
StorySystem.advance_gauntlet_beat("truth_2_revealed")
DialogueSystem.start_dialogue(GRIEF_PATH, {
"wren": _wren,
DialogueSystem.PLAYER_SPEAKER_ID: player,
})
await DialogueSystem.dialogue_finished
StorySystem.advance_gauntlet_beat("gauntlet_completed")
## Legt Marens Mesh in Liegeposition; der Root bleibt aufrecht, damit
## Sprechblase und Namens-Label lesbar über ihr stehen.
func _lay_maren_down() -> void:
var mesh := _maren.get_node("MeshInstance3D") as Node3D
mesh.rotation.z = PI / 2.0
mesh.position.y = 0.4

View file

@ -0,0 +1 @@
uid://dlqejrapkgsbe

View file

@ -10,8 +10,13 @@ extends Node3D
const MAIN_MENU_SCENE := "res://scenes/ui/main_menu.tscn"
## Setzt den Spieler auf den vom Zonen-Wechsel angeforderten Spawn-Punkt.
## Setzt den Spieler auf den vom Zonen-Wechsel angeforderten Spawn-Punkt
## und entfernt Maren aus dem Raum, sobald der Gauntlet-Wendepunkt sie
## genommen hat (StorySystem-Beat maren_death).
func _ready() -> void:
var maren := get_node_or_null("Maren")
if maren != null and StorySystem.has_reached_beat("maren_death"):
maren.queue_free()
var spawn_name := ZoneTrigger.consume_pending_spawn()
if spawn_name.is_empty():
return

View file

@ -84,6 +84,7 @@ func _process(_delta: float) -> void:
relationship_parts.append("%s %+d" % [npc_id.capitalize(), RelationshipSystem.get_relationship(npc_id)])
lines.append("Beziehungen: %s" % " ".join(relationship_parts))
lines.append("Gezeichnete-Standing: %+d (F9/F10 zum Testen)" % FactionSystem.get_standing(FactionSystem.MARKED_FACTION_ID))
lines.append("Gauntlet-Beat: %s" % StorySystem.get_gauntlet_beat())
var npc_states := PackedStringArray()
for npc in get_tree().get_nodes_in_group("npc"):
if npc.has_method("get_state_name"):