Skip to content
This English version is a machine translation and may contain mistakes. The Japanese version is the original.

Change the story with variables and conditions

You can record numbers such as courage or affection, and use them to change choices and the flow of the story.

Choose “File” → “Project settings…” from the menu, and in “Variables” set each variable’s name and “Initial value”. Use “Add variable” to add more.

“Variables” in project settings, where you set names and initial values

  • Place a “Variables” block from “Add block”, choose a variable, then choose “Set to value”, “Add”, or “Subtract”, and set the number.

The settings panel of a variables block, with the variable, operation, and value

  • A choice block can also do this. Press “Add change” under the choice’s variable changes. This lets a choice, for example, raise a variable when picked.

Press “Add condition” under a choice’s “Show only when…”, and decide whether the choice appears depending on a variable’s value. With no conditions, it always appears. Combine several conditions with “All must be met” or “Any one is enough”.

Place a “Conditional branch” block, press “Add condition”, and line up conditions with their destinations. They are checked from the top, and the story goes to the destination of the first one that matches. You can also set a destination for “When nothing matches”.

If you set the destination to an earlier group, you can also make a loop.

The sample work has an example of a block that adds to a variable. “Story” → “Check work…” also lists missing variables and destinations.