Writing about Horror, Sci-Fi and Interactive Fiction

Category: Twine (page 1 of 1)

Twine 2 Tutorial: Getting Loopy with Twine Loops

Computers love repetition. It’s what they are good at. Give a repeatable task to a computer and you will make a happy pile of silicon.

When writing programs, you end up writing lots of loops. With interactive stories, your mileage may vary. You may just write very text-centric stories, favoring links instead of code. In that case, you might not write a single loop.

Other times, you’ll want to utilize loops to process or act on your story data. This tutorial will get you started with Twine loops.

Read more

Twine 2 Tutorial: Branching Your Narrative With the If Macro

In this tutorial series, you defined some passages, created some variables and you even developed a simple inventory system. Unfortunately, your story doesn’t react to player choice.

For example, when the player starts your story, they choose the difficulty level of the story. In easy mode, the story places objects in fixed locations. In hard mode, the story places objects in random locations.

That’s just one choice and your story has lots of other choices to consider. Thankfully, there’s a macro for that; the (if: ) macro.

Read more

Twine 2 Tutorial: Getting the Player’s Name

I’ve been playing around with Twine for a number of years and the number one question I get from new story authors is, “how do I get the player’s name?”

In older versions of Harlowe, you needed to write some Javascript that created a browser input box. It was a rough solution that wasn’t very mobile-friendly. My advice to the question was always, “just don’t do it”.

Thankfully, Leon Arnott (the author of the Harlowe story format) provided a solution but in order to understand how to use it, you need to dive deeper into macros.

Read more

Twine 2 Tutorial: Coding with Twine Variables

Here it comes. The part of this tutorial series that some of you have been dreading: coding.

This is the part where we type obscure symbols that only a few select people can ever understand. Or so, some people tend to think. Believe it or not, coding isn’t that hard. You will get started on this journey by creating some Twine variables.

Read more

Twine 2 Tutorial: Adding More Locations

Passages are the bread and butter of creating interactive stories in Twine. You don’t have a story without them. Passages can represent anything in a story. For instance, you can use them to represent a place like the moon, a thought in a character’s head, or even a single line of dialog.

Combined with Twine coding, you can use them to run specific code that be accessed from anywhere in your story. You’ll learn how to do this later in this tutorial series. For now, it’s time for you to get practice building passages and linking them together.

Read more