From a780c8993ad30c2193bba74e229988afa6bb6dab Mon Sep 17 00:00:00 2001 From: "Z. Cliffe Schreuders" Date: Wed, 14 Jan 2026 09:46:33 +0000 Subject: [PATCH] Fix Ink compilation errors (part 3 - final) Fixed remaining conditional syntax errors across all files: - Converted all multi-branch conditionals to separate blocks - Added missing start knot to phone_robert_chen.ink - Fixed nested conditional logic in terminals and NPCs Scripts now compile with minimal errors. Remaining: 5 minor conditional errors to fix --- .../ink/m04_closing_debrief.ink | 6 ++++-- .../ink/m04_npc_operative_static.ink | 6 ++++-- .../m04_critical_failure/ink/m04_npc_voltage.ink | 6 ++++-- .../ink/m04_phone_agent0x99.ink | 6 ++++-- .../ink/m04_phone_robert_chen.ink | 12 +++++++++--- .../ink/m04_terminal_attack_trigger.ink | 3 ++- .../ink/m04_terminal_scada_display.ink | 16 ++++++++-------- 7 files changed, 35 insertions(+), 20 deletions(-) diff --git a/scenarios/m04_critical_failure/ink/m04_closing_debrief.ink b/scenarios/m04_critical_failure/ink/m04_closing_debrief.ink index 096437a..4d77032 100644 --- a/scenarios/m04_critical_failure/ink/m04_closing_debrief.ink +++ b/scenarios/m04_critical_failure/ink/m04_closing_debrief.ink @@ -316,11 +316,13 @@ Decision recorded. I don't know your real name, but... thank you. You saved this facility. You saved 240,000 people. -- chen_trust_level >= 50: +} +{chen_trust_level >= 50 and chen_trust_level < 80: You did good work here. This facility won't forget it. -- else: +} +{chen_trust_level < 50: I appreciate what you did, even if I don't fully understand it. } diff --git a/scenarios/m04_critical_failure/ink/m04_npc_operative_static.ink b/scenarios/m04_critical_failure/ink/m04_npc_operative_static.ink index 3b53c2c..fac34a4 100644 --- a/scenarios/m04_critical_failure/ink/m04_npc_operative_static.ink +++ b/scenarios/m04_critical_failure/ink/m04_npc_operative_static.ink @@ -79,9 +79,11 @@ You're not stopping this operation! {player_health_low: Critical Mass prevails! -- voltage_captured: +} +{not player_health_low and voltage_captured: Voltage! No! -- else: +} +{not player_health_low and not voltage_captured: For The Architect! } diff --git a/scenarios/m04_critical_failure/ink/m04_npc_voltage.ink b/scenarios/m04_critical_failure/ink/m04_npc_voltage.ink index e3d8ff9..f389a36 100644 --- a/scenarios/m04_critical_failure/ink/m04_npc_voltage.ink +++ b/scenarios/m04_critical_failure/ink/m04_npc_voltage.ink @@ -35,9 +35,11 @@ You're good. Better than the usual SAFETYNET drones. {operatives_defeated >= 2: You took out Cipher and Relay. Impressive. -- operatives_defeated == 1: +} +{operatives_defeated == 1: You got past my people. -- else: +} +{operatives_defeated == 0: Sneaky approach. I respect that. } diff --git a/scenarios/m04_critical_failure/ink/m04_phone_agent0x99.ink b/scenarios/m04_critical_failure/ink/m04_phone_agent0x99.ink index e23d0ee..f04b7e7 100644 --- a/scenarios/m04_critical_failure/ink/m04_phone_agent0x99.ink +++ b/scenarios/m04_critical_failure/ink/m04_phone_agent0x99.ink @@ -345,9 +345,11 @@ Three—disable physical bypass devices and SCADA malware. {handler_confidence >= 80: You've got this, {player_name()}. Textbook operation so far. Finish it. -- handler_confidence >= 60: +} +{handler_confidence >= 60 and handler_confidence < 80: Good work so far. Stay sharp for the final push. -- else: +} +{handler_confidence < 60: Be careful. This is the most dangerous phase. } diff --git a/scenarios/m04_critical_failure/ink/m04_phone_robert_chen.ink b/scenarios/m04_critical_failure/ink/m04_phone_robert_chen.ink index 8478800..f3cd9de 100644 --- a/scenarios/m04_critical_failure/ink/m04_phone_robert_chen.ink +++ b/scenarios/m04_critical_failure/ink/m04_phone_robert_chen.ink @@ -22,6 +22,9 @@ EXTERNAL player_name() // Available only after chen_is_ally = true // =========================================== +=== start === +-> chen_phone_support_start + === chen_phone_support_start === #speaker:robert_chen @@ -170,15 +173,18 @@ Three: Remote trigger mechanism. Secure and disable Voltage's command laptop. We're at critical levels. Chemical parameters are approaching dangerous thresholds. If you don't disable their attack soon, we'll have to do emergency shutdown—and that might trigger exactly what they want. -- urgency_stage >= 3: +} +{urgency_stage == 3: Dosing parameters are drifting into yellow zones. We've got time, but not much. Every minute those parameters drift closer to contamination levels. -- urgency_stage >= 2: +} +{urgency_stage == 2: Systems show anomalies but nothing critical yet. We have time to be methodical. Use it wisely. -- else: +} +{urgency_stage < 2: Systems are stable for now. But those parameters WILL drift if we don't stop them. The attack is scheduled for 0800. You've got time, but not unlimited. diff --git a/scenarios/m04_critical_failure/ink/m04_terminal_attack_trigger.ink b/scenarios/m04_critical_failure/ink/m04_terminal_attack_trigger.ink index 9fb5d95..f9efe51 100644 --- a/scenarios/m04_critical_failure/ink/m04_terminal_attack_trigger.ink +++ b/scenarios/m04_critical_failure/ink/m04_terminal_attack_trigger.ink @@ -94,7 +94,8 @@ Attack Vectors Disabled: {attack_vectors_disabled}/3 The threat has been neutralized. -> attack_fully_disabled -- else: +} +{attack_vectors_disabled < 3: ═══════════════════════════════════════ DISABLE ATTACK MECHANISMS diff --git a/scenarios/m04_critical_failure/ink/m04_terminal_scada_display.ink b/scenarios/m04_critical_failure/ink/m04_terminal_scada_display.ink index 08f2506..11431f3 100644 --- a/scenarios/m04_critical_failure/ink/m04_terminal_scada_display.ink +++ b/scenarios/m04_critical_failure/ink/m04_terminal_scada_display.ink @@ -136,30 +136,30 @@ SYSTEM ALERTS [00:00] - NORMAL OPERATIONS RESTORED No active alerts. - -- urgency_stage >= 4: +} +{attack_vectors_disabled < 3 and urgency_stage >= 4: [ACTIVE] - CRITICAL: Chemical dosing exceeding safe thresholds [ACTIVE] - WARNING: Automated control anomaly [ACTIVE] - WARNING: Unusual network traffic patterns [ACTIVE] - WARNING: Unauthorized SCADA script detected 4 CRITICAL ALERTS REQUIRE IMMEDIATE ATTENTION - -- urgency_stage >= 3: +} +{attack_vectors_disabled < 3 and urgency_stage == 3: [ACTIVE] - WARNING: Chemical dosing parameter drift [ACTIVE] - WARNING: Automated control anomaly [ACTIVE] - INFO: Network connection to 192.168.100.10 active 3 ALERTS REQUIRE ATTENTION - -- urgency_stage >= 2: +} +{attack_vectors_disabled < 3 and urgency_stage == 2: [ACTIVE] - INFO: Chlorine dosing trend anomaly [ACTIVE] - INFO: Automated adjustments not logged in manual log [ACTIVE] - INFO: Unusual SCADA backup server activity 3 INFORMATIONAL ALERTS - -- else: +} +{attack_vectors_disabled < 3 and urgency_stage < 2: [ACTIVE] - INFO: Minor chlorine parameter variation [ACTIVE] - INFO: SCADA backup server connectivity check