Choices, Part 1

Interactive books are all about choices. Do you go left or right? Do you answer kindly or aggressively? In Twine, you use links to connect passages and add choices to your story.

This is how it works:

  1. Open a passage.
  2. Put text in double square brackets like this: [[This is a link]]
  3. You just made a link, which automatically creates a new passage connected to the passage you wrote the link in.
  4. Add more links to have choices leading to different passages.

2. Watch how it’s done

3. Start writing yourself

  1. Open or create a story in Twine. (Check out the Creating a new story section if you need help with creating a new story.)
  2. Double-click on the passage that has been created with your new story.
  3. Write text that leads up to a decision.
  4. At the bottom, write two or more links for two or more decisions.

You can copy the following instruction and paste it into your passage to write the link. Simply replace the text in the brackets with a text of your own.

[[This is a link]]

4. Be aware of this

For every link you have in a passage, a new passage will be automatically created unless you use a link with the title of an already existing passage. In this case, the link will connect to that passage. Make sure your capitalization is exactly the same as your existing passage name!
If you want to rename a passage title or change the text in the link, do so by renaming the title of a passage. Then the text in the associated link will be automatically updated.
If you change the text in a link, a new empty passage with the updated title will be automatically created. The old passage gets disconnected.

5. Try it out with the sample story

To better understand this topic, you can look at the sample story from the Introduction section. Download it here if you have not done so yet.

  1. Import the HTML file called "sample-story" into Twine by clicking "Import From File".

  2. Open the story in Twine.

  3. Look at the two links in passage "Start".

    Screenshot of 3 passages in Twine.
    Screenshot of how to make a link in Sugarcube 2.
  4. Play through by clicking "Play" in Twine and a playable version opens in your browser.

6. Takeaways

Create links by typing text in double square brackets [[like this]]
Creating a new link automatically creates a new passage, with the title being the text you put into the brackets.
Renaming passages automatically updates the link.
Renaming links creates a new passage with that title and disconnects the old passage.

In the following section, you will learn an additional way to name your passage that will help you to keep track of all your passages.