Story structure

Branch nodes

Send the story one way or another by what has already happened, without asking the player.

A branch sends the story one way or another by what has already happened. The player never sees it. The story passes through the moment it arrives, and goes on to the node the branch picks.

Write the rule as a sentence first: If the player has the key, go down to the cellar. Otherwise, go to the locked door.

Send the story one way or the other

Add a branch

In the left sidebar, click Branch. Click the name at the top of the form and call it The Cellar Stairs.

Add a case

Under Decide, click Add a case. A case is one condition and the node it leads to. The new case starts on the story's first variable. Change it to Has the key, then pick is yes.

Say where the case goes

Next to Go to, pick The Cellar.

Say where everything else goes

Next to Otherwise, at the bottom of the form, pick The Locked Door.

Lead into the branch

Drag an exit of the scene before it, such as the option Try the cellar door, onto the branch's card.

On the canvas, the branch's card shows each case as a row with its condition, then a row for Otherwise. Its header says how many cases it has, such as 2 cases.

Put the cases in order

Decide says on entry, in order. Each time the story arrives, the branch reads its cases from the top. The first case that holds decides. A case that does not hold passes on to the next one, marked If not. When no case holds, Otherwise decides.

So put the narrowest case first. In Rainy Night Inn, the branch At the Door decides what the traveler finds upstairs:

  1. When The man in the straw cloak came is yes and the traveler still has the letter, go to Blocked.
  2. When the traveler still has the letter, go to The Letter.
  3. Otherwise, go to Empty-Handed.

If the second case came first, it would hold whenever the traveler has the letter, and the stranger would never stand in the way. Use Move up and Move down on a case to change the order. Delete case removes it.

Ask for more than one thing

A case can need several things at once. Click Add a condition to add another row. With more than one row, a switch says how they join:

  • All of these: every row must hold. The first case of At the Door needs the stranger to have come and the traveler to still have the letter.
  • Any of these: one row is enough.

Each row reads one thing:

  • a number, compared with a value, such as Trust ≥ 3. Compare with a variable compares it with another variable instead.
  • a yes or no, with is yes or is no.
  • an achievement, with Use an achievement: the player's achievement is held or is not held. See Achievements.

A branch reads only what the story keeps, such as variables and achievements. It cannot ask Plotti a question. For something Plotti judges from the story, such as whether the landlady believes the traveler's lie, use a Judgment step in an execute node, and let that node's leave conditions send the story on.

Choose a branch, a leave condition or an execute node

  • A branch decides once, the moment the story arrives. The player never waits in it.
  • A leave condition in an interaction node watches the whole scene, and takes the player out as soon as it holds. See Interaction nodes.
  • An execute node changes things first, such as a roll or a hit to HP, then decides where to go from the result. See Execute nodes.

If something goes wrong

Next steps