Start Passages - rvince452/twine-game-gen GitHub Wiki

Start of Game

The are some important passages related to the start of the game. I place these in a .twee file named start.

The Start passages

This is the starting passage for the game. It's name is specified in the "start" attribute of the StoryData passage. See Header - Important Passages. My StoryData.start is "Start" and so that is the name of the passage that Twine will look for and will start the game there. See my example below.

The StoryInit passage

Even before the game starts, this passage is executed to declare and initialize any variables used in the game. Twine/Sugarcube supports a few types of variables. The ones that start with $ will endure during the entire game.

Below, you can see I have declared:

  1. A variable named $debug and set it to true
  2. A variable named $inventory and set it to an empty array/list
:: Start

You are at the start of the game. But nowhere to go except to follow the road
[Follow the road to the house](/rvince452/twine-game-gen/wiki/loc-forest-driveway)
[Enter the forest](/rvince452/twine-game-gen/wiki/loc-forest-general)


:: StoryInit {"position":"1800,425","size":"100,200"}


<<set $debug to true>>
<<set $inventory to []>>