Skip to content

How a scheme runs

A scheme is a graph, and a graph does nothing until something runs along its links. This page explains how that happens, so you know what to expect from a scheme before you build one.

Most nodes have one input and one or more named outputs. A plain node has a single output, Out. A check has True and False. Chance has Success and Failure. Some nodes have no input at all: Start and End are examples.

A link joins an output to the input of another node. One output can have several links, and one node can be reached from several outputs.

Each link starts a flow. A flow moves from node to node along the links, and it ends at a node whose output leads nowhere. A node runs inside a flow, and the next node starts when the node before it has done its part. A Wait holds only its own flow.

Start
Show Dialogue
TOConspirator
A letter
The letter is sealed. Will it reach the council unread?
Send the letter
Chance
50% chance
Success
Failure
Succeed Scheme
Result: Success (ends when its flows end)
Fail Scheme
Result: Failure (ends when its flows end)
  • Start, output Start, goes to Show Dialogue.
  • Show Dialogue, output Send the letter, goes to Chance.
  • Chance, output Success, goes to Succeed Scheme.
  • Chance, output Failure, goes to Fail Scheme.
A flow from Start through a dialogue and a Chance node to one of two results. The scheme is sample data.

When one output has several links, every link starts a flow. The flows do not wait for each other.

Chance
35% chance
Success
Failure
Wait
3 sec
Succeed Scheme
Result: Success (ends when its flows end)
  • Chance, output Success, goes to Wait.
  • Chance, output Success, goes to Succeed Scheme.
Both links start when Chance takes Success. The higher node starts first. Wait keeps its own flow going for three seconds; Succeed Scheme sets the result at once.

The order is by height. The node placed higher on the canvas starts first. A node, and everything it starts at once, runs before the next link is taken. When a node waits, such as a Wait or a dialogue, the next link goes ahead while it waits. Nodes at the same height keep the order of their links. This is behaviour, not decoration, so put a cost above the attempt it pays for, and move a node to change the order.

Run Together bundles several nodes into one link. They start one after another, top first. Use it as one step of a Sequencer or one branch of a Random Branch.

Start has one output, Start, and runs when the scheme begins. End has no input and runs by itself when no flow is left: first its Always output, then the one that matches the result, On Success, On Failure or No Result. The scheme is over when the End flows are done.

The End node, with its four outputs.

Succeed Scheme and Fail Scheme only set the result. The scheme ends with that result when its flows have ended. To end it now, add Cancel Other Flows. If no node sets a result, the scheme ends with No Result. A scheme can also end because its target or conspirator is gone; that is a scheme setting. See Scheme settings.

Wait waits for seconds, days, months or years of game time, and does not count while the scheme is paused. It can wait a random length, until a date of the world’s calendar (the next month, season or year, or a day you choose), or until a Stop Wait node stops it. Stop Wait can let the stopped wait go on as if it had finished (Let It Go On). Wait Until waits until its conditions are met, and continues through Met (at once, if they are already met), or through Timed Out if you gave it a time limit. A wait that nothing can end keeps the scheme running.

A Show Dialogue waits too, for the choice. See Dialogues and announcements.

Sequencer runs the linked steps from top to bottom. Each step waits until every flow of the step before it has ended, and Done runs after the last step. Use it for acts that must not overlap.

Repeater runs its linked nodes again each time all of their flows have ended. Done runs after the last round, or after a Break Loop ends the loop.

For Each Actor runs Each once for every actor of a group, one after the other. Inside a round that actor is the Current Actor. Each One Is gives it a name. See Who a node acts on.

A loop that never waits runs every frame, so put a Wait or a dialogue in it.

Jump Target is an anchor, and Jump To continues from it as if the flow had arrived there. Use the pair for “try again” and for a tail that several parts share. See Add and connect nodes.

Chance takes Success or Failure at random. Random Branch runs exactly one of its links, with equal odds unless you give a branch a weight. See Chance, dice and seeds.

Run In Background starts flows that do not keep the scheme alive. A loop round or a Sequencer step does not wait for them. They stop when the End flow starts. Use it for a side story that must not delay the end.

Cancel Other Flows ends every other running flow of the scheme, including loops, stops waits and sounds, closes dialogues, and then continues. Use it at a point of no return.

Pause Scheme holds waits and loops until code or a Resume Scheme on a flow that is still running resumes the scheme.

Many nodes only change something and have a single output: Set Variable, Add Trait, Show Announcement. In the Studio such a change can be drawn as a short line under the output it follows, in the card of the node before it. The lines are called Then also.

Start
Show Dialogue
TOConspirator
A letter
The letter is sealed. Will it reach the council unread?
Send the letter
Chance
50% chance
Success
■ The scheme succeeds
Failure
■ The scheme fails
  • Start, output Start, goes to Show Dialogue.
  • Show Dialogue, output Send the letter, goes to Chance.
The same scheme with both results as lines under Chance.

This is only how the Studio draws the graph. The graph itself is not changed, so the game and a test run behave the same either way. The lines under an output run from top to bottom, and then the flow goes on along the link.

Step 1 of 4. Gold − 50 is first, Fame + 5 second.

Check Opinion
Conspirator's opinion of Target ≥ 20
True
Gold − 50
Fame + 5
False
Wait
3 sec
  • Check Opinion, output True, goes to Wait.

Step 2 of 4. Gold − 50 runs first.

Check Opinion
Conspirator's opinion of Target ≥ 20
True
Gold − 50
Fame + 5
False
Wait
3 sec
  • Check Opinion, output True, goes to Wait.

Step 3 of 4. Then Fame + 5.

Check Opinion
Conspirator's opinion of Target ≥ 20
True
Gold − 50
Fame + 5
False
Wait
3 sec
  • Check Opinion, output True, goes to Wait.

Step 4 of 4. After the last line, the flow goes on along the wire.

Check Opinion
Conspirator's opinion of Target ≥ 20
True
Gold − 50
Fame + 5
False
Wait
3 sec
  • Check Opinion, output True, goes to Wait.

After Move Up. Move Up: Fame + 5 is now above Gold − 50, so Fame + 5 runs first.

Check Opinion
Conspirator's opinion of Target ≥ 20
True
Fame + 5
Gold − 50
False
Wait
3 sec
  • Check Opinion, output True, goes to Wait.

After Move Up, step 2 of 4. Fame + 5 runs first.

Check Opinion
Conspirator's opinion of Target ≥ 20
True
Fame + 5
Gold − 50
False
Wait
3 sec
  • Check Opinion, output True, goes to Wait.

After Move Up, step 3 of 4. Then Gold − 50.

Check Opinion
Conspirator's opinion of Target ≥ 20
True
Fame + 5
Gold − 50
False
Wait
3 sec
  • Check Opinion, output True, goes to Wait.

After Move Up, step 4 of 4. After the last line, the flow goes on along the wire.

Check Opinion
Conspirator's opinion of Target ≥ 20
True
Fame + 5
Gold − 50
False
Wait
3 sec
  • Check Opinion, output True, goes to Wait.

The outline shows the order the flow takes under True; it is this page’s marker, not something the Studio draws. Move Up is the line menu’s own item; the lines swap in one step in the Studio, and the slide is only an illustration.

The setting Fold changes turns the lines on or off. See Folding.

To run a scheme and watch the flows, use Test run. To make your own, start with Add and connect nodes. Who a node acts on is in Who a node acts on, and the starting conditions in Requirements. The whole picture of a scheme is in Schemes.