I have previously used choicescript for writing, however, I found the lack of a node map really difficult and I had to write my own using other software to keep track of all of the important choices etc. Then I came across Twine, and saw something that offered a node map (yay!), but didn't offer something similar to fakechoice, which is basically giving the user choices which wouldn't really result in different paths.
), and with the assistance of the kind folk here and on stackoverflow, I have managed to cobble something together which seems to do everything I want. For example, if you would like to have a conversation with an NPC, but don't want to create multiple nodes to do this, then this is what the script is capable of.
Here's a demo of what it can do: Dropbox
It's running in sugarcane, and all of the text for the demo with the exception of the check variables passage at the end is in one passage.
This is NOT a custom macro for twine, as I'm certainly not at the level I need to be in understanding those to be able to make this into one, but I will probably begin to attempt to change it into a custom macro at some point. Anyway, I thought I would share the script in case anyone was interested.
For this to work, you have to use html which would look similar to this:
<div class="inlinechoice-0" id="0">
<a class="question" id="1">Question 1</a><br>
<a class="question" id="2">Question 2</a><br>
This presents the user with a list of options, which will disappear once one of the questions is clicked. The next piece of html would look like this:
You asked the first question.
You asked the second question.
Note that <a class="question" id="1"> would return <div class="answer-1">, so the numbering here is important.
Finally, you need this piece of html so that everything appears where it should.
<div id="dialogue_container"> </div>
<div id="append"><br>You've finished asking questions.<br>
The dialogue_container is where all of your chosen questions and answers will appear. The append div will show once there are no more questions and I guess is optional. In the example above I haven't nested any additional questions within the answers, but the demo link does do that. Inlinechoices begin at 0 and increment by 1, so if you were to nest them in an answer div you would call them inlinechoice-1 with an id of 1, and inlinechoice-2 etc. I'm not claiming that this is an elegant solution by any means, however, it's what I've managed to work out via a combination of google, stackoverflow and various Twine resources.
Currently, there are a few issues, which I am hoping to iron out.
however, I couldn't get this to work
Anyway, I'm posting this here in case it's of any use to anyone, and I'll probably use this thread to record any updates and improvements. I know this is useful certainly for me, and hopefully it will be for others.