Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Is it possible to render passages like a conversation?

Hi there, I am quite new to twine, I've just recently discovered it by playing Lifeline following a friend's advice. I decided to tinker with it for a while and I stumbled upon something that I can't figure out. If you have played Lifeline, you know that the story is rendered as if it was a conversation, meaning that all the passages are displayed in one page, as if you are having a chat in a program like whatsapp or similar apps. I was wondering, how can I do something like that? Edit:using Sugarcube 2 as a story format

Comments

  • Yes, it is certainly possible with Sugarcube 2. You can do the following to get the effect you want.
    <<linkreplace "link_text">>
    <<display [[Link Description]]>>
    <</linkreplace>>
    

    With this, you will replace the "link_text" button with the passage inside(which in this case is titled "Link Description"). And if you want to continue the effect, all you have to do is add a similar link to the newly added paragraph.
  • Persistence of the current state of your story (eg. value of the variables, which passages have been visited, etc...) into the History System only occurs when a Reader traverses between passages, and the Save System persist the current state of the History System not the current state of the story.

    The above will not cause you issues as long as the conversation code within a single passage does not change the state of your variables (via choices made) nor rely on that changed state to determine where in the current passage's conversation the Reader is. If it does then a refreshing of the current web-page may return the Reader to the start of the current passage's conversation.

    eg. Assuming your current passage's conversation look something like the following and that either the Reader needs to click on the page/link to advance the conversation or there is some sort of timer based system that progresses the conversation for them.
    John: Hello, whats your name?

    Jane: My name is Jane.

    John: Do you come here often?

    choice: Yes or No (Reader selects 'Yes')

    Jane: Me and my girlfriends come here every Friday night.

    John: That is good to known, can I buy you a drink?

    choice: Yes or No (Reader selects 'No')

    Jane: No thank you

    .....
    If the Reader (or some other means) refreshes the current web-page the conversation would return to the first line and start again because the History System would not know of the interactions/choices done. The same would occur if the Reader Saved and then Loaded the story at any point during the current passage's conversation.
Sign In or Register to comment.