Twine Version: 2.3.14
Story Format: Harlowe
Platform: Ubuntu Linux 20.04 64bit
Hello all, I’m in the process of adding some (dialog:) boxes to my twine story where I think an important piece of information needs to stands out. However, even in the simplest of test cases it seems to break any subsequent (else:) or (elseif:) statements and executes the attached hook even it shouldn’t.
{
(set: $test to 0)
(if: $test is 0)
[(dialog: “Nice one!”)(print: “This is alright”)]
(else:)
[(dialog: “Uh oh!”)(print: “Shouldn’t be reading this.”)]
}
In the above example I get both dialog boxes one after the other, both strings are printed and I get the error:
‘There’s nothing before this to do (else:) with.’
This also happens exactly the same with the (alert:) macro. Obviously there are some simple ways around this in my example, but in a complex story full of (else:) and (elseif:) statements it would be hell to try and re-write everything to avoid this issue. Is there something I’m doing wrong here, or is there any other way to get something similar to a dialog box without it breaking the rest of the script?
Thanks in advance!