It looks like you're new here. If you want to get involved, click one of these buttons!
You entertain yourself by (either:"goofing around online","playing with your (either:"cat","dog","hamster")","watching TV") until you get tired and go to bed.
This was possible in Quest by nesting {random} statements, but Twine doesn't seem to like it. Am I just typing it wrong, or is this impossible in Twine at the moment? I can do something like this if I absolutely have to:
(set: $pet to (either:"cat","dog","hamster"))
You entertain yourself by (either:"goofing around online","playing with your $pet","watching TV") until you get tired and go to bed.
but I want to know if there's another option that doesn't involve a new variable before I take that route. Thank you!
Comments
Try: In your case there's no need for the nested statements.
And do you know a story format that it might be possible in? I'm not too familiar with the differences between them yet.
If variable is 1, answer = goofing around
If variable is 2, answer = playing
If variable is 3, answer = TV
Wouldn't that do it?
Is there a special way of doing temporary variables in Twine that's different from regular variables? (I assume that means that the variable only exists in the passage it's declared in, although I may be wrong.)
I would say that if you just threw the word Temp on the front and never used it again, though.... we could call it disposed of.
In other words, I moved the nested (either:) outside of the quotes and concatenated it with the prefix string.