Hi, I'm looking for a function for Sugarcube 1.0.35 that works like the Harlowe text as follows:
There is a (link: "sword.")[sword. It is big and looks like it could take somebody's head off.]
In other words, it initially displays just 'There is a sword', but when clicked, it elaborates on this information. As far as I can see, there's not an equivalent, but it's likely that I just missed something obvious. Any help?
Comments
Try <<linkreplace>>
http://www.motoslave.net/sugarcube/2/docs/macros.html#macros-linkreplace
Nevermind, you wanted a SC 1.0.35 solution. I can't read.
The solution is fairly simple:
1. Use a HTML span element with an ID to mark what you want to be replaced.
2. Use a <<replace>> macro to replace the marked content with the new text.
3. Use a <<click>> macro to allow the user interact with the story.
The following does the above: