Fix scroll generation
@@ -1187,7 +1187,7 @@ class ScriptBuilder {
// Replace newlines with scroll code if larger than max dialogue size
if (scrollHeight) {
let numNewlines = 0;
- text = text.replace(/\n/g, (newline) => {
+ text = text.replace(/\\n/g, (newline) => {
numNewlines++;
if (numNewlines > scrollHeight - 1) {
return "\\r";
