Skip to content

Inside the Tutorial scheme

Tutorial is the first scheme a new player meets in The Hollow Throne. Your old Seal-Keeper shows a new ruler how the court is run, in a string of dialogues. It has 37 nodes. That is small, yet it holds a dialogue with choices, variables, a roll of chance, a time skip and the On Game Loaded node, all in one short run. Read it as an example of a scheme that talks to the player and never touches another actor’s plans.

  • You want to see a dialogue-driven scheme end to end.
  • You want to see where a scheme variable earns its place.
  • You want to know what a scheme should do when the player loads a save in the middle of it.

The scheme’s Show in lists is Never, so no list offers it, and it needs no target. Only the demo’s code starts it: when a new game begins, DemoFlow.StartTutorial starts Tutorial for each actor a person plays, with no target. A loaded game never starts it; the save brings a running tutorial back by itself.

The scheme has one requirement, You live, checked both when it starts and while it runs. If it breaks, the scheme is interrupted and ends in failure. In the draft, this is the node broken, a When a Requirement Breaks node, wired to a Fail Scheme node.

Variable Type What it holds
Friend Actor A courtier of your clan, picked at random.
HaveFriend Bool True once a friend was found.
Met Bool True after the friend scene, whichever answer you gave.
Confided Bool True if you told the friend a plan.
WeekPassed Bool True after you let a week pass.

All four flags start false. Friend is picked by a Find Actor node from your own clan: grown (16 or older), not your spouse, child or parent, and not the Seal-Keeper.

Start
Set Objective
Hear your Seal-Keeper out and learn how the court is run.
Find Actor
Found
Not Found
Set Variable
Scheme: HaveFriend = True
Show Dialogue
TOConspirator
Welcome, {conspirator.Name}
Your old Seal-Keeper bows as low as his back allows.
Show me.
I will wager I know it already.
I have kept a court before. Remind me only of the letters.
Spare me the lessons.
Chance
50% chance
Success
Failure
Set Variable
Conspirator: Marks + 5
Set Variable
Conspirator: Strain + 1
  • Start, output Start, goes to Set Objective.
  • Set Objective goes to Find Actor.
  • Find Actor, output Found, goes to Set Variable.
  • Find Actor, output Not Found, goes to Show Dialogue.
  • Set Variable goes to Show Dialogue.
  • Show Dialogue, output I will wager I know it already., goes to Chance.
  • Chance, output Success, goes to Set Variable.
  • Chance, output Failure, goes to Set Variable.
The opening of Tutorial, drawn from sys-tutorial.json with every node as a card. The first dialogue has four answers. Three of them lead on to nodes that are not drawn.

The scheme sets an objective. It looks for a friend. Then it greets you, and the dialogue offers four answers:

  1. Show me. goes to the lessons.
  2. I will wager I know it already. goes to a Chance node of 50%. The answer shows that chance as its odds, because the draft names the node wagerRoll as the answer’s odds node. Win, and you gain 5 Marks and jump to the lesson Letters and offers. Lose, and you gain 1 Strain and go to the lessons.
  3. I have kept a court before… goes straight to Letters and offers. It is open only when your Statecraft is 12 or more, and the draft gives the reason shown when it is not.
  4. Spare me the lessons. ends the scheme as a failure.

The scheme has nine dialogues in all. After the greeting they run in a chain. Most have a skip answer, and that answer ends the scheme as a failure.

Dialogue Title Note
1 Welcome, {conspirator.Name} The greeting above.
2 The passing days The time controls.
3 A week, if you please Let a week pass. runs Advance Days with 7 days, then sets WeekPassed.
4 Knowing your people
5 What may be done
6 The land itself
7 A word in confidence Offers to confide a plan to your friend. Sets Confided, then Met; the other answer sets only Met.
8 Letters and offers
9 One thing more Plays a tension track and reveals the friend.

The text of dialogue 1 reads differently for a Wilful, a Timid or any other ruler, with {if conspirator has trait ...} lines. Dialogue 9 changes with Confided and Met the same way. See Dialogues and announcements and Texts, tokens and pacing for those tools.

Play Sound
sfx_outcome_discovered
Only if Conspirator is a player
Compare Variable
Scheme: HaveFriend = True
True
False
Compare Variable
Scheme: Met = True
True
False
Compare Variable
Scheme: Confided = True
True
False
Set Variable
Conspirator: Marks − 5
Add Tie
Out
Not Changed
Add Memory
Conspirator remembers Saw through you about Friend
Succeed Scheme
Result: Success (ends when its flows end)
  • Play Sound goes to Compare Variable.
  • Compare Variable, output True, goes to Compare Variable.
  • Compare Variable, output False, goes to Succeed Scheme.
  • Compare Variable, output True, goes to Compare Variable.
  • Compare Variable, output False, goes to Succeed Scheme.
  • Compare Variable, output True, goes to Set Variable.
  • Compare Variable, output False, goes to Add Memory.
  • Set Variable goes to Add Tie.
  • Add Tie goes to Succeed Scheme.
  • Add Tie, output Not Changed, goes to Succeed Scheme.
  • Add Memory goes to Succeed Scheme.
The end of the lessons, drawn from sys-tutorial.json. Three Compare Variable nodes read the flags; the friend sold what you confided.

After dialogue 9 a sound plays, and three Compare Variable nodes read the flags in turn. With no friend, or a friend you never met, the scheme succeeds quietly. If you confided in the friend, your Marks fall by 5 and you and the friend get a Rival tie. If you kept silent, you remember having seen through the friend. The draft’s own note says so: the friend was a spy.

Then Succeed Scheme sets the result. Last, an End node routes the result to an announcement: The court is yours on success, As you wish on failure. A player sees them; nobody else does.

A player who jumped ahead with the wager or the veteran answer never meets the friend, so Met stays false and the scheme succeeds quietly.

On Game Loaded
Show Announcement
To Conspirator, if a player
Welcome back
When a Requirement Breaks
Fail Scheme
Result: Failure (ends when its flows end)
  • On Game Loaded, output Loaded, goes to Show Announcement.
  • When a Requirement Breaks, output You live, goes to Fail Scheme.
The two small flows of Tutorial that are not part of the main run. The announcement's text line is left off the card.

An On Game Loaded node starts a flow when a saved game is loaded. Here it leads to an announcement titled Welcome back, with a button Carry on. Its text has the Seal-Keeper say he will carry on where they stopped. See On Game Loaded.

The nodes used here have their own pages: Show Dialogue, Chance, Set Variable, Compare Variable, Find Actor and Advance Days. To start a scheme from code, as DemoFlow does, see Schemes from code. The next scheme in this group is Offer a Token, a social scheme with memories.