Choices and variables

Forks, quick choices, variables and conditions: how to build, by hand, a story that remembers the reader’s decisions.

A fork: the Event node

A fork is an Event node: a question and answer options, each option with its own port and a line from it into its own node. That is how the story splits into branches right on the graph.

An option can carry effects (⚡ — “Change variables on selection”) and a show condition (“if”): an option whose condition fails simply doesn’t appear for the reader. Drag the options to reorder them.

  1. On the graph toolbar, press “+ Node” and pick “Event”.
  2. A new Event comes with two options, “Option A” and “Option B”. Select the node, open the Dialogs tab and type the question into the “Line above the options” field (leave it empty for buttons only), then the option texts.
  3. Need more options — press “+ Option”.
  4. Drag a line from each option’s port to the node where its branch continues. Until there is a line, the option says “not linked”.
The story graph: a scene, an Event node with two options and two branches after it
Each option of a fork has its own line — those are the two different branches of the story.

Quick choice

When a branch is two lines long, a whole node is overkill. A quick choice sits right in the line timeline: the reader picks on the spot, the options change variables and play effects, and the story carries on in the same timeline — no new branch appears on the graph.

What the reader picked can be checked later with an “if” → “quick choice” condition on any line — that is how the answer resurfaces a few scenes on.

  1. On the Dialogs tab, below the lines of a Screen or Dialog node, press “Quick choice”. To put it between lines, hover between the cards and press “Insert a quick choice here”.
  2. Type the question into “Line above the options” and the option texts; one more option — “+ Option”.
  3. Press ⚡ on an option, then “Variable”, and set what changes when the reader picks it.

Variables

A variable is the story’s memory, and variables live on the Vars tab. You pick the type when you create one: “Number” — a counter, points, gold; “Flag” — yes or no, something happened; “Text” — the player’s name, a nickname; “Emotion” — the current mood; “Character” — a value tied to a hero: “Hearts / affinity”, “Mood” or “State”; “JSON” — a structure such as an inventory.

For every new character the studio creates a hearts variable by itself (it is named “Сердца · <name>”) — how that character feels about the reader.

A variable’s row shows its name, id and type, and the field on the right is its starting value: every playthrough begins with it. How the values change during reading is shown in Play — more on that below.

  1. Open the Vars tab and press “+ Variable”.
  2. Pick a type under “Variable type” and fill in “Name” — the studio makes the id from it, shown on the line below.
  3. If needed, tick “Notify on change” and “Show in hints”, then press “Create”.
  4. Set the starting value in the field to the right of the name.
The Vars tab: a number, a flag and a text value
The Vars tab: each variable shows its id, type and starting value.

Changing a variable

There are three operations: “+” adds, “−” subtracts and “=” sets a value; a flag gets “= true” or “= false”. Where you set it depends on when the value should change.

On a choice — ⚡ on an Event option or a quick-choice option. On a line — ⚡ on its card (“Action: change a variable on this line”): the value changes when the line appears. In an Actions block — the “Variable” button on the “Basic” tab. On the graph — a Variables node: rows of variable, operation and value, one more with “+ Operation”.

  1. Press ⚡ on the option that should earn the reader a point.
  2. Press “Effect” (“Variable” on a quick choice) and pick the variable, say “Trust”.
  3. Set the operation to “+” and type 1.

The value right in the text

A variable goes into a line in curly braces: {id} pastes its value — “You have {gold} gold” — and {id_icon} its icon, if it has one. A flag prints as “yes” or “no”. The variable’s name works in place of the id too.

The {} button on a line card (“Insert a variable or function {…}”, Alt+V) opens a searchable menu: variables, their icons, functions and a text condition — a piece of the sentence that depends on a value. Suggestions also drop down by themselves once you type “{”.

There are ready-made inserts as well: {player_name} — the name the reader typed, the current date and time, a random number {random:1|100}.

Toasts and stat icons

The gear on a variable opens its “Variable settings”. “Notify on change” shows the reader a toast: for a number it reads “Name +10”. Your own text and icon are set in “Icon and notification text…”.

“Show in hints” turns a variable into a stat: its icon appears on the Event and quick-choice options that change it and its value as a row in the player menu, so the reader sees what a decision will cost. The icons show while the option to show stat icons on choice options is on under Novella → Frames (it is by default); readers can hide the hints for themselves.

The reader sees both the icon and the menu row only with hints on. Characters’ hearts notify from the moment they are created: “Valerian: relationship improved ❤️”. To turn their toast off, untick “Notify on change” on those hearts; your own wording goes into “Icon and notification text…”, and the “When it goes down” tab takes a separate text for a drop.

Conditions

The “if” button on a card (“Show condition”, Alt+I) decides whether the reader sees this line. A condition can be a “variable” — a comparison > < = ≠ ≥ ≤; a “string”; an “expression”; a “quick choice” — what the reader picked; “node visited” and “chapter completed”. Extensions add their own — an item in the inventory, for example.

The mode is toggled with a click right in the condition row: “if … → show” or “→ hide”. Several conditions are joined with “and” or “or” via “+ one more condition” and are evaluated left to right.

The same condition works on an Event option (“Option show condition”), on a quick choice — the whole block and each option — and on an actions block (“Block trigger condition”). That is how one scene reads differently for two readers, with no duplicated branches on the graph.

  1. Press “if” on the line card.
  2. Pick the kind of condition — say, “variable” — and the variable itself.
  3. Set the comparison and the value: “Trust ≥ 3”.
  4. Want the line only when the condition fails? Click “→ show” and it turns into “→ hide”.

The Condition node

When the story turns different ways on many conditions, a Condition node is handier. Its card shows a ladder of branches, each with its own port, and “Else →” at the bottom for every other case.

Branches are checked top to bottom — the first matching one wins. A branch with no conditions always matches, so nothing below it will ever play; a branch with no line takes the reader out of the chapter. The studio warns about both right on the card.

  1. On the graph toolbar, press “+ Node” and pick “Condition”.
  2. “+ Branch” adds a case. Clicking a branch opens its condition: “Variable”, “String”, “Player choice”, “Character outfit”, “Character look”, “Expression”, “Node visited” or “Chapter completed”, joined with “AND” and “OR”.
  3. “Player choice” routes a branch by the reader’s answer - no variable needed. Find a quick or a regular choice in the list: this chapter’s choices come first, then earlier chapters, and the search also looks into option texts. Then pick the option and “picked” or “not picked”. “Not picked” is also true for a reader who never reached the choice. The player has remembered regular-choice answers since November 2026: if the chapter with the choice came out earlier, add a “Node visited” condition for that option’s scene with “OR”.
  4. “Character outfit” checks what the character wears now: a whole outfit group (“Night” - any of its outfits), the base outfit or a single one; “is not wearing” is the opposite. It reads what is on the character at this point of the story, not what the reader picked earlier: in a dress by morning it is no longer “Night”. Lines, options and Action blocks have the same condition.
  5. “Character look” checks which look the character has now: the main one or one of the looks; “does not have the look” is the opposite. A story look beats the reader’s pick, and a paid look the reader has not bought counts as the main one - just as the scene shows it. The item appears once a character has at least one look; lines, options and Action blocks have the same condition.
  6. “Check earlier” and “Check later” reorder the branches; “Duplicate branch” copies one.
  7. Drag lines from the branch ports and from “Else →” to the right nodes.

Testing branches in Play

To avoid replaying the whole story for one branch, open ⚙ in Play and expand “Debug variables”. It shows the current values; change the ones you need and press “Restart with these values”. “+ Save current…” keeps the set under a name, and “Reset to start values” brings the originals back.

Debugging exists only in the editor and only for this run: readers never see it, and progress made with it isn’t saved.

Frequently asked questions

An option didn’t show up for the reader? Most likely its “if” condition failed — such an option is hidden, not greyed out. Check the values in “Debug variables”.

How do I delete or rename a variable? The Vars tab has no buttons for that. A character’s variables go away with the character, and their hearts are renamed along with them.

Created a variable with the same name and the old one got reset? The id is built from the name, so the same name means the same variable, and the new one replaces the old one along with its value. Give variables different names.

Does a number have a minimum and a maximum? No: the value can even go negative. Need a limit — check it with a condition.

How do I ask the reader for a name? An Actions block has a “What is your name?” step on its Hero tab — the name becomes {player_name}. For any other answer there is the “Text input” step: the timeline waits for the answer and stores it in a variable; create a “Text” variable for it beforehand.

How do I make a riddle with a correct answer? Open the parameters of the “Text input” step and fill in “correct answers” (several variants - separate with “;”): case, extra spaces and a trailing full stop do not matter. “Until correct” keeps the reader there until the answer is right. Need a fork - pick a “result” variable: it gets 1 for a correct answer and 0 for a wrong one, then put conditions on lines or a “Condition” node.

Can the AI do this? Yes: the AI agent sets up variables, effects and conditions from a description in words. It uses the same buttons, so anything it does can be fixed by hand.