Skip to content

Tutorial 6: A plot with accomplices

A conspirator needs helpers against a target. The scheme picks three people, asks each one in turn, and counts those who agree. With at least two helpers, the conspirator waits for the night. The watch may catch one helper, who dies. The conspirator is told who fell and who still stands with them.

The tutorial uses a Gather Actors, a For Each Actor, a Show Dialogue, Add Accomplice, a Check Actors, a Chance twice, Pick an Accomplice, Set State and On Accomplice Left. It follows the recipe a-plot-with-accomplices of the Claude skill, without its gold and requirements.

Finish Make your first scheme first. You need at least five living actors in your database: two to start the scheme and three to ask.

  1. In the Schemes page, click + and name the scheme The Pact of Knives.
  2. Click empty canvas, so that the Element Inspector shows the scheme’s settings. Open the Cast section.
  3. Click + New actor list, type Candidates and press Return.
  4. Click + New actor variable three times. Name them Helper, Caught and Fallen.

You now have one list and three actor variables of this scheme. Each name is typed into a name field whose hover text is Enter adds it; Escape cancels. Until a node fills it, the row of Candidates reads filled by nothing yet and the row of each actor variable reads stored by nothing yet. Accomplices is already there, as any number, empty at the start: every scheme has it.

Leave Dead Accomplices Stay off. An accomplice who dies then leaves the list, and that is what step 7 reacts to.

2. Say what the plot is about, then gather three people

Section titled “2. Say what the plot is about, then gather three people”
  1. Drag from Start into empty canvas and add a Set Objective. In Objective, write Find three people who will stand with you against {target.Name}.
  2. Drag from it into empty canvas and add a Gather Actors.
  3. Set Order to Random, At most to 3, and Into to Candidates. Leave Mode at Replace the list.
  4. Leave Among as it is: Everyone. A new node has Never the Conspirator and Never the Target on, so neither is picked. Dead actors are left out unless Include Dead is on.
  5. Drag from Not Found into empty canvas and add a Fail Scheme.

The card should read like Fill Candidates with 3 at random of Everyone. Set Objective and Fail Scheme may fold into lines under their outputs. That is fine: see Folding.

The tokens in the objective are filled in whenever the panel shows it. See Texts, tokens and pacing.

  1. Drag from Found and add a For Each Actor. Set Among to Actors of a list and List to Candidates. Set Each One Is to Helper.
  2. Drag from Each and add a Show Dialogue. Set Show To to Helper (under THIS SCHEME in the picker). Set Speaker to An actor and Who to Conspirator.
  3. In Title, write A Quiet Word. In Text, write {conspirator.Name} draws you aside.{pause} "{target.Name} has ruled long enough. Stand with me."
  4. Under Choices, rename the choice Ok to I am with you. and switch on Preferred by AI. Click Add Choice and give the second one the text Find someone else.
  5. Drag from the output of I am with you. and search for Add Accomplice · Add To List. In Actor, pick Helper.
  6. Drag from the output of Find someone else. and add a Log. In Message, write {scheme.Helper|plain} refused to join the pact against {target.Name|plain}.

Add Accomplice is an Add To List whose List is already Accomplices. The conspirator and the target are never accomplices, so neither can be added.

A person who plays Helper sees the window. An actor nobody plays answers at once, from the choices marked Preferred by AI. Here that is I am with you., so the people nobody plays join.

Each turn of the loop holds Helper. A turn starts when every flow of the one before has ended, so the three are asked one after the other.

  1. Drag from Done and search for Any Accomplice… · Check Actors. It makes a Check Actors whose Among is Actors of a list and whose List is Accomplices.
  2. Set Which to How many, Number Is to ≥ Greater or Equal, and Number to 2.
  3. Drag from False and add a Fail Scheme.

Done runs outside the loop, once the last turn has ended. Which offers Any, Every, None and How many.

  1. Drag from True and add a second Set Objective. In Objective, write Wait for the night, with {accomplices} at your side.
  2. Drag from it and add a Wait. Set Unit to Seconds and Length to 10.

{accomplices} prints the names of the list in order: one name, two names joined with “and”, or more names with commas. An empty list prints nothing.

  1. Drag from Wait and add a Chance. Set Chance (%) to 40.
  2. Drag from Success and search for Pick an Accomplice · Find Actor. It makes a Find Actor over the accomplices. Leave Pick at Random. Set Store In to Caught.
  3. Drag from Found and add a Set State. Set Actor to Caught and State to Dead.
  4. Drag from Failure of the Chance, from Not Found of the Find Actor and from the output of Set State into one new Chance, the strike. Set Chance (%) to 50.
  5. Drag from its Success and add a Succeed Scheme. Drag from its Failure and add a Fail Scheme.

Set State may fold under Found as a line. A wire from Found then starts after that line, so the strike comes after the death. The dead helper leaves Accomplices by themselves. No node removes them.

  1. Press Space on empty canvas and add an On Accomplice Left. It has no input. It starts a flow of its own when someone leaves.
  2. Set Store In to Fallen.
  3. Drag from Died and add a Show Announcement. Leave Audience at Only If Player Is and Player Is at Conspirator.
  4. In Title, write A Helper Lost. In Text, write The night watch took {scheme.Fallen}.{pause} {if accomplices}{accomplices} still stand with you.{else}You stand alone.{end}

Left runs when a node or code takes someone out. The pact has none that does, so you leave it unlinked.

The announcement is for the conspirator only, and only when a player is the conspirator. A scheme run by a character nobody plays stays silent.

Press Cmd+S (Ctrl+S on Windows).

  1. Press F5. In the setup window, pick a Conspirator and a Target, and choose that you play the Conspirator.
  2. Under Decisions, find the row for the watch Chance and choose Always take its Success way out. The watch then catches someone every time.
  3. Click Run.

What the scheme should do, by the code: the objective is set, three dialogues are put to the candidates and answered for them, and the objective changes after the count. Then the watch catches one helper and your announcement opens. The strike decides the end. The Run tab’s Values section lists the cast and the scheme’s values. Read there that Accomplices lists the people who joined.

To see a refusal, set Answers of other actors to Ask me. A card opens for each dialogue that is not yours.

The wait is 10 seconds. Skip waits in the speed menu jumps the clock.

  • The Pact fails at once. Gather Actors found nobody: it needs living actors beyond the conspirator and the target.
  • Nobody joins. Check that I am with you. has Preferred by AI on and that its output leads to Add Accomplice.
  • No announcement. Your run must have you playing the Conspirator. Dead Accomplices Stay must be off.
  • A choice leads nowhere. Link every choice of a dialogue that waits: an unlinked choice ends that flow silently.
  • Make the conspirator choose: show a dialogue per candidate to the conspirator before the helper is asked.
  • Take the helpers from a clan instead of everyone: set Among of Gather Actors to Members of a clan.
  • Let the dead stay and ask whether anyone fell: switch on Dead Accomplices Stay in the scheme settings.
  • Next: Tutorial 7: A grudge that fades.

Related pages: Gather Actors, For Each Actor, Add To List, Check Actors, Find Actor, On Accomplice Left, Scheme settings, Test run.