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
This commit is contained in:
Z. Cliffe Schreuders
2026-01-14 09:46:33 +00:00
parent 9ba64bea5b
commit a780c8993a
7 changed files with 35 additions and 20 deletions

View File

@@ -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.
}

View File

@@ -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!
}

View File

@@ -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.
}

View File

@@ -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.
}

View File

@@ -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.

View File

@@ -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

View File

@@ -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