Hey guys,
Very new to Twine but super excited to be able to play around with it. I'm writing a larger story and don't want every dialogue option to go to a new passage, as in the long run this would bloat out the amount of passages immensely. Is there an easy way to dynamically display text upon clicks to simulate the idea of dialogue?
Oh btw, I use sugarcube because of the save function, so switching to another format is basically not an option for me.
Thanks in advance
Comments
This creates the clickable links.
This text appears after the corresponding link is clicked
SugarCube also has a <<click>> you could use to ask the Reader things, and macros like <<replace>> and <<removeclass>> which you could use to show dialog.
The following is a very simple example of one way to do what you want in SugarCube.
a. Place the following in your Story Stylesheet: b. Place the following in a passage:
There are two main issues with doing dialog without using passages:
1. As you can see It gets complex really fast.
2. The Reader can't use the web-browser's Back button to undo their choices because it only tracks when the Reader changes for one passage to another.
http://twinery.org/forum/discussion/comment/3002/#Comment_3002
Written for sugarcane, but just uses links so it might work with sugarcube.
Idea is you define the conversation in a variable and then the macro just plays through it. The got: tag in the conversation moves you to another passage and ends the conversation. Think I've got a move complex version around that supports setter links as well.