@@ 211,6 211,15 @@ class Interchange {
text = text.trimEnd()
let lines = text.split("\n")
lines = lines.map(line => wordwrap(line, 38))
+ if (lines.length > 7) {
+ console.error(`Error: Too many text lines in interchange.
+This interchange has ${lines.length} lines, but WA's maximum is 7.
+Note that PE-DIA wraps long lines in your text file to fit WA's width.
+
+${lines.map((l, i) => (i >= 7 ? "XX " : " ") + String(i+1).padStart(2, "0") + " | " + l).join("\n")}
+`)
+ Deno.exit(1)
+ }
text = lines.join("\n")
let choices = []