Skip to content

Test run: play a scheme in the Studio

A test run plays the open scheme inside the Studio, in a copy of your world. You watch the flow move through the nodes, answer the dialogues, and see what changed. Nothing is saved.

  • You want to see a scheme work without pressing Play.
  • A scheme does not do what you expect and you want to find the node where it goes wrong.
  • You want to try one branch: a Chance that fails, a choice you rarely make.
  • You want to start in the middle of a long scheme.

Press Run in the toolbar and the Studio adds three things. The toolbar shows the run’s own buttons. A run bar appears under the toolbar. The Library gets a Run tab, the first of its tabs.

Step 1 of 5. The run starts at the entry.

Start
Show Dialogue
TOConspirator
A letter for the king
The guard at the door knows you. How does the letter get in?
Bribe the guard
Do it myself
Chance
35% 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 Bribe the guard, goes to Succeed Scheme.
  • Show Dialogue, output Do it myself, goes to Chance.
  • Chance, output Success, goes to Succeed Scheme.
  • Chance, output Failure, goes to Fail Scheme.

Log

Step 2 of 5. Show Dialogue runs and waits for your answer.

Start
Show Dialogue
TOConspirator
A letter for the king
The guard at the door knows you. How does the letter get in?
Bribe the guard
Do it myself
Chance
35% chance
Success
Failure
Succeed Scheme
Result: Success (ends when its flows end)
Fail Scheme
Result: Failure (ends when its flows end)
A letter for the king
To Olaf
The guard at the door knows you. How does the letter get in?
  • Start, output Start, goes to Show Dialogue.
  • Show Dialogue, output Bribe the guard, goes to Succeed Scheme.
  • Show Dialogue, output Do it myself, goes to Chance.
  • Chance, output Success, goes to Succeed Scheme.
  • Chance, output Failure, goes to Fail Scheme.

Log

  1. 0:00Dialogue "A letter for the king" shown to Olaf.

Step 3 of 5. You chose Do it myself; the run follows that link.

Start
Show Dialogue
TOConspirator
A letter for the king
The guard at the door knows you. How does the letter get in?
Bribe the guard
Do it myself
Chance
35% 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 Bribe the guard, goes to Succeed Scheme.
  • Show Dialogue, output Do it myself, goes to Chance.
  • Chance, output Success, goes to Succeed Scheme.
  • Chance, output Failure, goes to Fail Scheme.

Log

  1. 0:00Dialogue "A letter for the king" shown to Olaf.
  2. 0:04Dialogue "A letter for the king": you chose "Do it myself"

Step 4 of 5. Chance rolls and goes on.

Start
Show Dialogue
TOConspirator
A letter for the king
The guard at the door knows you. How does the letter get in?
Bribe the guard
Do it myself
Chance
35% 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 Bribe the guard, goes to Succeed Scheme.
  • Show Dialogue, output Do it myself, goes to Chance.
  • Chance, output Success, goes to Succeed Scheme.
  • Chance, output Failure, goes to Fail Scheme.

Log

  1. 0:00Dialogue "A letter for the king" shown to Olaf.
  2. 0:04Dialogue "A letter for the king": you chose "Do it myself"

Step 5 of 5. The run ended.

Start
Show Dialogue
TOConspirator
A letter for the king
The guard at the door knows you. How does the letter get in?
Bribe the guard
Do it myself
Chance
35% 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 Bribe the guard, goes to Succeed Scheme.
  • Show Dialogue, output Do it myself, goes to Chance.
  • Chance, output Success, goes to Succeed Scheme.
  • Chance, output Failure, goes to Fail Scheme.

Log

  1. 0:00Dialogue "A letter for the king" shown to Olaf.
  2. 0:04Dialogue "A letter for the king": you chose "Do it myself"
  3. 0:05Ended: Success

The Studio has the buttons Run, Pause, Resume, Step and Restart and the keys shown; Play here is this page’s button. The Log is shortened: a real run writes more lines. Dialogue names are sample data.

This figure is the docs’ own illustration of a run: the glide and the Play button are not the Studio’s. The Studio’s run shows the same states, on the real graph.

The toolbar’s run buttons. After a run starts, Run is replaced by pause (or resume), step, stop and restart buttons, a speed menu that reads 1×, and a clock. After the run ends, the Run button reads Run again.

The run bar.

  1. The state: **Running · ** and the clock, Paused at and a node’s title, Waiting for you: choose an answer, or Ended: with Success, Failed, No result, Stopped or Error.
  2. The cast and the seed, in one line: Test run · Olaf → Torsten · you play Olaf · Dice seed 1234 · nothing is saved. Click it to copy the seed.
  3. Notes at the right: 1 outcome forced, Start anyway is on, Started at a node, a dialogue waits for your answer.
  4. How much of the scheme the runs have covered: a number and % of branches seen.
  5. Buttons: ◎ Follow, Back to my view, Back to the run, Waiting for you, Clear (after the end).

On the canvas. The node that runs has a halo. A pulse travels along a link the flow takes, and links the flow has taken are drawn wider. A node visited more than once shows a count such as ×3. A node the run is held in front of is marked with corner brackets. A short line under a node can say what was chosen there.

The Run tab has four sections: Now, Log, Values and Paths. The step “Read the Run tab” describes them.

Open a scheme. Click Run in the toolbar, or press F5. The first time you run a scheme, the setup window opens. After that, Run uses the setup it remembers for that scheme.

The run starts in a copy of your world. The state reads Building the test world… and then Running. The hover text of Run says Run this scheme in a copy of your world. Nothing is saved.

To undo, press stop. Stopping throws the copy away. The path stays on the canvas.

Run is grey in Play mode and while Unity compiles scripts. It is missing when no scheme is open, and while a run goes, because the run’s own buttons take its place.

Click the small arrow beside Run. Its hover text is Choose who plays and how the run decides. Pick Run with setup…. The window Test run setup opens under the Run button.

Test run setup
Test run · Offer a Token

Run plays this scheme in a copy of your world. Nothing is saved.

CAST
Conspirator
Olaf
Target
This scheme needs no target.
Accomplices
+

Can it start: ✓ yes

Start anyway
Off
YOU PLAY

Dialogues for the actor you play open as cards in the graph. Everybody else answers as the game's AI does.

⋯ the window continues: DECISIONS, WORLD ⋯

The top of the setup window. The scheme's name and the actors are sample data.
Test run setup

⋯ the window starts with CAST and YOU PLAY ⋯

DECISIONS
Chance and random branches
Decided by the dice
Answers of other actors
Decided by the dice

⋯ one row for each Chance, Random Branch and dialogue of the scheme; CODE ANSWERS when it calls your code ⋯

WORLD
Dice seed
0
Keep this seed
Off
Skip waits
Off
Other actors act (AI)
Off
The rest of the window. The rows of Decisions follow the nodes of the scheme you test.
  • Cast. Conspirator and Target pick who starts the scheme and against whom. A scheme that needs no target says This scheme needs no target. Accomplices are chips; + adds one and a chip’s ✕ removes it. The line Can it start: says whether the scheme’s requirements are met, with ✓ yes or ✕ and the reason.
  • Start anyway starts the run even when the requirements are not met. The run bar then says Start anyway is on.
  • You play. Dialogues for the actor you play open as cards. Everyone else answers as the game’s AI does. Choose Conspirator, Target, an accomplice, Another actor… or Nobody (watch only). The choice is a role, so changing the conspirator keeps “I play the conspirator”.
  • Decisions. Chance and random branches and Answers of other actors are each Decided by the dice or Ask me. A row for each Chance, Random Branch and dialogue lets you choose Always take one way out. As set above undoes it.
  • Code answers. Shown only when the scheme calls your code. Game code does not run in a test run. For each method you give an answer in its place, or choose Ask me when it is called.
  • World. Dice seed, Keep this seed, Skip waits and Other actors act (AI). Start anyway and these three toggles are off in a new setup.

Run in the window starts the run (Cmd or Ctrl plus Enter does the same). Close closes it and keeps your choices. Escape closes it too. Run is off while a run plays or when the setup has a problem; its hover text says why.

In the menu beside Run, pick Start paused (step from the first node). The run holds in front of the first node and the state reads Paused at and the node’s title.

Press step, or F10, and the run does one node and pauses again. Step works only while the run is paused: its hover text otherwise says Pause the run first to go one node at a time.

To go on, press resume, or F6. To stop, press stop.

Action Button Key
Run, or Run again after the end Run F5 or Cmd or Ctrl plus Enter
Pause and resume pause, resume F6 or Cmd or Ctrl plus Enter while a run lives
Resume resume F5 while paused
Step step F10
Stop stop Shift plus F5
Restart with the same setup and dice restart Cmd or Ctrl plus Shift plus Enter
Run from the selected node Run from here Alt or Option plus F5

The keys work while the Studio window has the focus. They do nothing while you type in a text field, and not in Play mode. Pause is off while the run waits for your answer: its hover text says The run waits for your answer: answer it on the card or in the Run tab.

Click the speed menu, 1×. It offers 0.5×, 1×, 2× and 4×, and Skip waits. With Skip waits on, the clock jumps from one wait to the next, and the menu reads 1× · skip. The same switch is in the setup window. The item is grey when waits in seconds do not run in this build, and Go on now is then not offered.

To undo, pick another speed or switch Skip waits off.

When the flow reaches a Show Dialogue for the actor you play, a card opens beside the node. It shows the dialogue’s title, Speaker to Recipient (or To and the recipient), the text, and one numbered button for each choice. Press a button, or press a number key from 1 to 9 while the card has the focus. A choice that is not available is off, and its hover text starts Not available now.

A dialogue with a time limit shows Time limit and the length, and it does not count down in a test run. The button Let it time out runs the Timeout output. A dialogue with no choices has Continue, and an announcement has Close.

When Chance and random branches is Ask me, a decision card opens instead. Its title ends : which way? and its buttons are the ways out, and Let the dice decide. The card says The run waits for you. The world is frozen until you answer. A card also opens for Answers of other actors set to Ask me, and for a code method set to Ask me when it is called; for code, the state reads Waiting for you: answer for the game’s code.

While the scheme that runs is not the one on screen, the run bar offers Waiting for you, which opens the same card.

An answer cannot be taken back, but you can press restart to play the setup again from the start.

The Now section lists what runs or waits. A waiting node has buttons: Go on now on a Wait (it skips the rest of the wait), Fire: True and Fire: False on a Wait For Trigger, Press and Release on an On Key Press (they need an actor you play). Each line has Show, which selects the node on the canvas.

Click a line of the Log to show its node. The log follows the newest line unless you scroll up.

The Values section lists the cast and the scheme’s values. A value that changed shows its old value struck through.

The Paths section reads like 3 of 5 branches seen in 2 runs, with a bar. A graph with no branches says This graph has no branches to see. Under it, each branch not seen yet has Show and Run to here.

Select a node. Run to here runs until that node is about to run, then holds. The outcomes on the way are forced, so the run gets there. The state then reads Arrived at and the node’s title. It is in the menu beside Run, in the Paths list, and in the This run block of the Element Inspector.

Run from here starts a new run at the selected node. The nodes before it do not run. It is in the node’s right-click menu (the first entry), in the menu beside Run, in the Element Inspector and under Alt or Option plus F5. During a run it reads Stop and run from here. It needs a setup the scheme remembers: run the scheme once, or open Run with setup…, first. The run bar says Started at the node, and its first line adds · from the node’s title. The log notes first what did not happen.

The This run block shows only while a run of this scheme, or its last run, is shown. Pause here is in that block for a selected node. The state then reads Paused at the node and (Pause here), and the canvas marks the node with a dot. The run pauses in front of that node every time it is about to run. The button then reads Remove Pause here. The block also tells you how often the node ran: Not reached in this run, Visited once or Visited 3 times, and last way out: the output.

To undo Run from here, run again from Start.

In the menu beside Run, pick Run again with new dice. Each run rolls new dice unless Keep this seed is on. The run bar shows the Dice seed. Run again (after an end) and restart play the same seed.

To use a seed on purpose, type it in Dice seed. Typing a seed turns Keep this seed on. ⚄ New clears the seed and turns Keep this seed off.

After a run ends, the Paths section shows Replay the last run with a slider. Drag it to see the canvas as it was at that moment. Back to the end shows the whole run again.

Under Runs, each earlier run has Replay. It runs again with the same cast, dice and answers.

After the end, the path, the Run tab and the run bar stay as “last run”. Click Clear in the run bar to remove them. The path also goes the first time you edit the graph, and nothing is saved either way.

While a run is live, the scheme it plays is locked. An edit is refused with Stop the run to edit. and Undo and Redo are held for that scheme. Other schemes stay editable. Select a node and you can still read it: the This run block works.

If the graph changes by another route, the bar says The graph changed during the run. The run plays the graph it started with. and offers Run again with the new graph.

To end the lock, stop the run. The Studio also stops it when you close the window, open another database or start Play mode.

Turn on Reduce motion in the More menu, or the setting Reduce motion in test runs on the Settings page. The pulse, the chevrons and the halo stop. Follow jumps instead of gliding.

You come from Problems, notes and validation: a node with an error is worth fixing before you run. The next lesson is Requirement Sets page, which a run checks when the scheme starts.

The toolbar’s Run group is described in The toolbar, control by control. The scheme’s own settings are in Scheme settings.

The nodes you meet most are Show Dialogue, Chance, Wait, Wait For Trigger and On Key Press.

Setting What it does Default When to change it
Reduce motion in test runs A test run shows no travelling pulse, no marching chevrons and no breathing halo, and Follow jumps instead of gliding. Off Turn it on if the motion of a run bothers you.

The window’s four toggles belong to each scheme’s setup, not to the Settings page.

Toggle What it does Default When to change it
Start anyway Starts the run even when the scheme’s requirements to start are not met. Off You want to test a scheme your world cannot start yet.
Keep this seed Every Run uses the same dice seed and repeats the same rolls. Off You want to see the same run again.
Skip waits Jumps the clock from one wait to the next. Off A wait is long and you only care about what comes after it.
Other actors act (AI) The other characters and clans think and act while the run plays. Off You want to see how the scheme behaves in a living world.

Run is grey. Play mode is on, or Unity is compiling scripts. The hover text says which. Run is missing. No scheme is open, or a run is going.

The run waits and nothing moves. A dialogue waits for your answer, or a Wait waits until a Stop Wait. Look at Now. The state reads Waiting: nothing is moving when only you can move it.

A dialogue never closes by time. The time limit does not count down in a test run. Press Let it time out.

Step does nothing. The run is not paused. Pause it first.

The hover text of step and stop names a second key. It is a key that not every keyboard layout has. The Studio acts on the keys in the table above and on no others.

Game code does not run. Answer for it in Code answers, or choose Ask me when it is called.

Message Where it shows What to do
Stop Play mode to run a scheme here. Hover text of Run Stop Play mode.
Scripts are compiling: try again when they are done. Hover text of Run Wait for Unity.
Choose who plays first (Run ▾ › Run with setup…). Run bar, after Run from here Run once with Run with setup….
Select a node first. Menu entry or run bar Select one node on the canvas.
…Turn on “Start anyway” to run it regardless. Run bar, after a refused start Click Start anyway in the bar, or fix the requirements.
Stop the run to edit. Run bar and a short notice Stop the run.
The graph changed during the run. The run plays the graph it started with. Run bar Click Run again with the new graph.
Scripts will recompile when the run stops. Run bar Stop the run, or wait.
Nothing is due now: a wait holds the run. Use “Go on now” in the Run tab to skip it. Run bar, after Step Use Go on now, or switch Skip waits on.
Answer first: the run waits for you. Run bar, after Step Answer the card.
The test world is being built. Hover text of pause, step, restart Wait a moment.
This answer could not be given now (the dialogue may have closed). Run bar Look at Now for the card that waits.
Stopped by you. Run bar, after the end None. You pressed stop.
The Studio closed: the run was stopped. Another database was opened: the run was stopped. Play mode started: the run was stopped. Run bar, after the end Run again when you are back.