I'm trying to get a passage that gets revisited to offer the player a randomized set of options that lead to the same destination. This seems right, but it throws an ILLEGAL error when I run it. Anyone know what I'm doing wrong?
Ex:
You see two choices.
(either:("Choose Red or Blue"[[Red pill->SceneX]][[Blue pill->SceneY]]),("Choose Green or Purple"[[Green pill->SceneY]][[Purple pill->SceneX]])
I'm still getting my head wrapped around the logic of (x) vs [x] vs
x in Harlowe as it compares to javascript, actionscript etc:
myFunction
{
if()
{
then...
}
elseIf()
{
then...
}
else
{
otherwise...
}
}
Comments
Unexpected token ]►
This error message was reported by your browser's Javascript engine. I don't understand it either, but it usually means that an expression was badly written.
Markup links start with a and end with a like the following: Hooks start with a [ and end with a ] and come in two general types:
a. Named b. Associated: A hook that is associated with something like a macro