Hi there,
I'm trying to make a link to a new passage, but I want the visible text to include [ ] symbols, to represent an action rather than dialogue.
I tried this:
[[[Run to the Fermented Potato]]]
The link it creates displays correctly as "[Run to the Fermented Potato]" but the link doesn't work (displays an error in the next passage. Also, the next passage is automatically named "[Run to the Fermented Potato" (yeah just the first "[" ). I found this a bit odd.
I'm new to Twine, any help is much appreciated!
Comments
For Harlowe 2.x, this works:
I couldn't get things to work in Harlowe without using a variable.
I recommend using the two argument version of the link syntax for this (i.e. passage, not passage), so Twine 2 isn't running around making all kinds of crazy passages.
Note that in both examples, we're using graves (`), not single quotes ('). The grave key is just above tab on most keyboards, to the right of the number keys.
The simple solution is to use HTML UTF-8 Unicode characters instead, you can find the codes for the square brackets in this Unicode Character Table.
The following demonstrates three different link types:
WARNING: You may of noticed that the Name of the target Passage does not include the square brackets (neither character or UTF-8 codes), this is because it is generally not a good idea to use punctuation/extended characters in a Passage Name.
I'm using Sugarcube 2.14, sorry I didn't mention it, I thought I was posting in the Sugarcube 2.x category, but it seems to just have been the Twine 2.0 category. My bad!
I went with TheMadExile's
It seems to work perfectly. Cheers!