Skip to content

Logic without coding ​

All the game's logic is made of scripts. Each script has an event that fires it and a chain of blocks: conditions with True/False branches and actions. They are all in the block reference.

Three views, the same data ​

In the script bar you switch between Human reading, Nodes and Text: all three edit the same script.

On using ‹the rusty Key› with ‹the Garage Door›:

The Human reading view shows the script as text you understand at a glance:

Human reading view

text
On using the rusty Key with the Garage Door:
    If the player has the rusty Key:
        Set the Garage Door to the state open with the sound metal_creak.wav.
        Remove the rusty Key from the inventory.
        The player says: “Finally!”.
        Go to the scene Garage interior at the entrance Front door with fade to black.
    Otherwise:
        The player says: “It's locked tight, I need a key.”.
  • Each colored hole is a drop-down with autocompletion that suggests things from the script's scene first.
  • + Add step or the + that appears between steps insert a block. Its search ignores accents and capitals and understands other words: “if” gives the conditions, “pause” or “delay” gives Wait, “random” gives Chance, “talk” gives Say and Conversation. While you type, the list goes from the closest match to the furthest (on a tie, what you use most in the project) and Enter picks the first one. In easy mode, if what you look for is an advanced block, it shows below with “(advanced)”.
  • Numbers: the chip and its field use the decimal point or comma of the editor language (“0.1” in English). The small window opens on the same line, to the right of the chip. Numbers with a natural range (percentages, volumes, opacity, camera zoom, sizes, rotations, speed) have a slider with the number in view: the keyboard arrows move one step (Shift, ten). You can type a value outside the range; the script warns you, but keeps it and the game uses it.
  • Drag a step by its ⋮⋮ handle (it appears on hover, to its left) and drop it in any gap: further up or down, or in another branch (“yes” or “otherwise”). A condition moves with its branches. It is the same as disconnecting and reconnecting a block in the node view.
  • A condition in the middle of a script does not take along what comes after it: its two branches (“yes” and “otherwise”) join again and what follows always happens, after the condition. Put what should only happen in one case inside its branch; the + right below a condition adds a step that always happens, whichever branch ran.
  • ⏱ on each “says” (and the narrator): how long the line is shown, automatic or the seconds you want. See Tags in lines.
  • Long scripts: each stretch draws its first 60 steps and the rest as you scroll down (or with Show N more), so a script with hundreds of blocks opens and edits without waiting. Going to a block (a warning, Diagnostics, “Used in”) draws it even if it is further down.
  • Right-click on a step: Duplicate (the copy goes right below), Copy, Cut, Paste after, Add note and Delete. Right-click between two steps: Paste here.

The Node view is a professional graph:

Logic node view

  • Right-click or Shift+A: add a block at the cursor.
  • Dragging a wire to empty space: create an already connected block.
  • Ctrl+C / X / V / D: copy, cut, paste and duplicate. Del: delete. Shift+drag: multiple selection.
  • Right-click on a block: the same as in the human view (Duplicate, Copy, Cut, Paste after, Add note, Delete) plus Insert step after…, Disconnect, Frame in comment and Delete without reconnecting.
  • Comment: colored frames for grouping. Arrange places the blocks automatically.
  • Pins are arrow-shaped (execution) and the True/False outputs have their own rows.

Text view ​

Text is the human view as text you write directly, ideal for going fast instead of chaining many blocks:

Structured text logic view

  • Each change is applied as soon as the text is understood; if a line isn't understood, its number is marked in red, the reason is explained below and the script doesn't change until you fix it.
  • If the line names an inventory item or a variable that does not exist yet (“Add pala to the inventory.”, “Set points to 5.”), a + Create the item / the variable button shows next to the error: it creates it and the line is understood. Blocks work the same way: in the item or variable slot, type a new name and press Enter.
  • Ctrl+Space autocompletes: at the start of a line, the sentences of every block (with their ‹holes›, the first one already selected to type over); in the middle of a sentence, the project's names (characters, items, hotspots, variables, scenes, scripts…).
  • Tab indents 4 spaces and Enter keeps the indentation (and goes in one level after a line ending in “:”). // … lines are notes.
  • Lines you don't change keep their translations and voices, and blocks keep their place in the node view.
  • A block's advanced settings, the ones that are not part of its sentence, are written at the end in brackets: “Write “READY” above the screen [typeface: Silkscreen] [color: #ffb000].”. They only show when they are not the default (also [vibrates: strong] or [above: the screen]).
  • It is a single script: to write several at once use Import / Export.
  • As in conversations, “Neighbor: “Hello.”.” (a speaker and their line in quotes) works the same as “Neighbor says: “Hello.”.”; reading it back writes it with “says”. Also in “Import text” and in cinematic clips.
  • If an event names something that does not exist (“On talking to Nobody:”), the error says which name fails. If it names a character who is not placed in the script's scene, you get a warning: that event only works if the logic brings them there (no warning for the player or for whoever arrives with “Take … to the scene”).
  • Jumps: when a step goes back to one already written (asking a question again, an ending shared by two branches), that step has a label in square brackets on its own line in front of it, and the jump is written with an arrow, as in conversations:
text
On game start:
    [The player says Do you know]
    The player says: “Do you know the password?”.
    If knows_password equals true:
        The player says: “Come in.”.
    Otherwise:
        The player says: “Let me think…”.
        -> The player says Do you know

The label comes from the first words of the step (up to six, not ending in an article or preposition; with “ 2”, “ 3”… if it repeats) and is not saved: when the text is read again, the jump connects the same way. You can write your own; each one must be different, and a jump to a label that does not exist is an error with its line.

The same in every view ​

The three views edit the same script and do the same with a step:

OperationHuman viewNodesText
Insert a step+ between stepsright-click · Shift+A · Insert step after…type the line
Movedrag the ⋮⋮ handledisconnect and reconnectcut and paste lines
Duplicateright-click · Duplicateright-click · Ctrl+D (the copy goes behind the original)copy and paste lines
Copy, cut and paste between scriptsright-clickright-click · Ctrl+C/X/Vthe text
Deleteright-click · ✕right-click · Deldelete the line
Author note💬 · right-clickright-click · Add note// … line
Duration of a line⏱⏱[duration:N] tag

When you delete a step, what was before it joins what comes after in all three views (in nodes, Delete without reconnecting leaves the gap). The colored comments and the position of the blocks only exist in the node view.

Notes ​

Any step, and the script itself, can carry an author note: free text to explain what it does and why. In the human view, hover over a step and press the note icon (💬) or, next to the script's name, “Script note”. Notes appear in yellow above the step, also in the node view (they can be edited in either) and in the text you export or paste into an AI (// … lines). They don't affect the game.

Scenes also have Author notes in their inspector (with nothing selected on the canvas): to explain how a scene is built. The editor tutorials are full of notes.

Organizing scripts ​

The left panel is a tree:

  • Globals and a fixed folder per scene.
  • Inside you can create subfolders with a color and an icon: puzzle, conversation, cinematic…
  • Drag scripts and folders to move them. Moving a script to another scene changes its scope.
  • The search box filters by name, and each script's icon shows its type of event.

Common recipes ​

“If they have the lockpick OR the crowbar” (OR condition): there's no need to duplicate the actions. In the Node view, chain the conditions through their No output (if they don't have the lockpick → do they have the crowbar?) and connect both Yes outputs to the same block. For “AND”, chain them through the Yes output.

Taking control away or running in the background ​

By default, while a script runs the player cannot act (which is what you want when a character walks up to you, talks or a cinematic plays). The selector next to the script name, Takes control away from the player / In the background (the player can move), changes that: a background script runs without holding control, ideal for routines, ambience or messages that must not stop the game. In the script text, write “[background]” at the end of the header (=== Routine (The square) [background]). Inside any script, Give back player control and Take away player control still release or hold control halfway through.

Say: waiting or without waiting ​

This is a different question: does the script wait for the line to finish? The Say block has a selector with two options:

  • (waiting), the default: the line is shown in full and only then does the next step run. This is the normal choice for conversations and scenes.
  • (without waiting): the line appears and the script carries on at the same time (a character who talks while walking, a casual remark).

In the script text, “Leo says: “Hello”.” is the default form and “Leo says (without waiting): “Hello”.” the other. The two settings combine: in a background script (or after Give back player control) “Say (waiting)” lines still can't be skipped by a click: the click moves the player and the conversation carries on. Projects that used the old “Say without pausing the script” block are converted automatically.

The tutorial Who has control (on the editor's home screen, Tutorials → Logic) shows it with characters you can try.

If you only want a character to patrol, wander or repeat an animation, no script is needed: use its Behavior.

Living NPCs (a bartender who cleans glasses and talks to himself while the player explores): in an “On entering the scene” script use Give back player control and then the NPC's steps with Walk…, Say (without waiting) and Wait. End with Repeat the script from the start so the routine is a loop. A script that has given control back stops by itself when the player leaves the scene, and as soon as the player clicks on the NPC (talk, look, use something with him) his routine pauses and waits for him; when finished, it carries on where it was.

Using or reading an inventory item (a note, a radio, a map): the On using … from the inventory event fires when the item is used on its own (with the Use verb, clicking it twice or as set in Read when clicked), and On looking at … from the inventory replaces its description. It is used to open a document, switch players with a radio, etc.

Dials, switches and combinations: give the object one state per position (“0”, “1”, “2”, “3”) and use Move … to its next state (it goes back to the first after the last). Then Run the script that checks the combination with nested conditions (“If the red dial is in the state 2:” → “If the green dial…”). That way each dial is two blocks instead of a chain of conditions.

Several players: Switch control to another character takes the camera and control to their scene (and runs their “On entering the scene” scripts); it can also be switched with the portraits. With If the player is … the same script (e.g. “Use the radio”) does different things depending on who you control. The starting player also appears by name in the character lists. With inventory per character, Give the card to Lola passes it to her even if she is in another scene.

Rounds and distractions (a guard who patrols and goes to check a noise): the round is an “On entering the scene” script that gives control back, walks between waypoints and ends with Repeat. The distraction (breaking a vase) also gives control back and gives orders to the guard: the last script to give an NPC an order wins and the round waits its turn; when the distraction ends, the round carries on. The same happens when talking to him or using something with him.

In-game text ​

Write “DEFUSED” above the screen puts that text over the object, centered and as tall as it (if it does not fit across, smaller until it fits, with a margin on each side), with the typeface and color you pick in its advanced settings (white by default). Use it for a machine's screen, a scoreboard or a sign that changes. The text can carry marks like [var:points]: it updates by itself every time the variable changes, without writing it again. It is kept in saved games, translated with the rest of the texts and not shown while the object is hidden or in another scene. It goes with the object, sorted by its Y: if a character walks in front of the board, they also cover what is written on it (in a 3D scene, the text goes on top). The countdown above an object does the same. Clear the text above the screen removes it. An object carries one text: writing another one replaces it. If there is also a countdown above the same object, both show, so clear the text before starting the countdown (as in the “Timers, countdowns and in-game text” tutorial).

Countdowns ​

Visible countdowns: Start the countdown time from 30 seconds showing it on screen puts a clock at the top and counts the time variable down one by one (it stops while paused, is kept in saved games and carries on even if you change scene). When the countdown time reaches zero: is its event, and Stop the countdown time cancels it. With “if time is less than 10” you can hurry the player up. Its advanced settings put it above an object in the scene instead of at the top: the screen of a bomb, a wall clock. It shows centered over the object and as tall as it, with the typeface you choose (Google pixel art ones such as Silkscreen or VT323 load by themselves when there is internet; if the project brings the font file, that one is used) and its color (LED red by default). It follows the object if it moves and is not shown while the object is hidden.

Timers (“you have 25 seconds”): a global script that gives control back and uses Wait keeps counting even if the player changes scene or player. Scene scripts, on the other hand, stop when leaving it (NPC routines). The script can change variables and objects in other scenes; characters who aren't in the current scene talk “by radio” (their line appears at the bottom).

Pause and saved games: with the pause menu, the journal or a document open, the whole game freezes: characters, routines, waits and timers. When loading a saved game, the routines that were running (the “On entering the scene” ones and called scripts, like a countdown) are launched again from the start. What came from a player action (for example, the vase distraction) is not repeated. Write routines so that starting over makes sense: “Give back control” at the start and the state in variables or objects.

Stealth: guards who see: When Bruno sees the player within 220 pixels fires when the player enters his field of view, a cone towards where he faces that moves and turns with him (he doesn't see behind). Inside, the usual is Bruno turns towards the player, a line and The player appears at entrance … instantly. For hiding places, draw a region and start with If the player is in the hiding place: (nothing happens). When leaving the hiding place, if he is still looking, he sees you. There is also the condition if Bruno sees the player to check it in any script.

Cameras and forbidden zones: a region with When the player enters … and a variable (cameras_off). When entering a region with a script (or being seen by a guard) the player stops on the spot and what they were about to do is canceled. That way a guarded zone can't be crossed on the way to an exit, not even with the double-click that crosses instantly: if the route goes through a guarded region or in front of a guard, the double-click makes the player run and they can be stopped.

Regions that notice NPCs: in Enter region and Leave region you choose who: the player (the default), a specific character or anyone. That way the baker reaching the counter or the guard stepping on the trap runs its script: “When Gus enters Counter:”. With anyone it fires for the player and for any character in the scene. Changing scene doesn't fire anything for already being inside, and, as with the player, it doesn't fire while a script takes control away. Only the player stops on entering a region with a script. In a walkthrough, Enter the region … is the player: an NPC's scripts can't be tested there, because the simulator doesn't move NPCs.

Lines that don't repeat (looking at the painting for the third time): The player says in order one of these lines: “A landscape.” | “Still a landscape.” | “Enough.” Each time they say the next one. At random picks one different from the previous one; in order (then keeps the last) repeats the last one when they run out. Lines are separated with “|” and the block remembers where it is, also in saved games.

Names that change (“Stranger” → “Bruno” when he introduces himself, “Rusty key” → “Clean key”): Rename … works for hotspots, scene objects, characters and inventory items, and Change the description of … changes what is said when looking at it (if there's an “On looking at…” script, the script wins). If an inventory item has the same name as something in the scene, it appears in the list as “… (inventory)”.

Go back where you came from (a map, a close-up, the inside of a wardrobe entered from several scenes): Go back to the previous scene with fade to black takes the player to the last scene they were in, to the same spot and facing the same way.

Turning off the light: Light the scene with almost total darkness in 2 seconds and, when lighting the candle, … with warm candlelight. Normal light brings the scene back to its original look.

Scripts with parameters ​

A callable script (“When this script is called”) can receive data. Press the event's (no parameters) hole and add each one with its name and type: character, item, element (hotspot, scene object, character or entrance), text or number.

  • Inside the script, parameters appear at the top of the lists of holes of the same type, as ‹who›. Numbers can also be used in number holes (Wait ‹seconds› seconds).
  • In lines, [param:who] writes their name.
  • To call it: Run the script Greet with who: Bruno, line: “Hello”. From another script with parameters, ‹who› passes on the one it received.
text
=== Greet (Global)
When this script is called with who (character), line (text):
    The player turns towards ‹who›.
    ‹who› says: “[param:line]. Have we met?”.

=== Talk to the baker (The square)
On talking to Baker:
    Run the script Greet with who: Baker, line: “Good morning”.

Formulas ​

For calculations and compound conditions there's no need to chain blocks:

  • Calculate damage = strength * 2 + random(1, 6) stores the result in a variable (for yes/no ones, whether it holds).
  • If (coins >= 10 and has_map) or is_night holds: takes the Yes branch if the formula holds.
  • In any text, [calc:coins * 5] writes the result (“It will cost you [calc:price * amount] coins”).
You writeWhat it is
strength, has_mapVariables, by name (and the parameters of a callable script).
12, 1.5, "text"Numbers (decimals with a dot) and texts in quotes.
+ - * / % and ( )Operations (+ also joins texts).
= != < > <= >=Comparisons (== and <> also work).
and, or, notAlso &&, ||, !.
true, falseYes/no values.
random(1, 6)A random whole number between the two (included).
min(a, b, …), max(…)The smallest and the largest.
round(x), int(x), abs(x)Rounding, whole part and absolute value.
if(condition, a, b)a if it holds; otherwise, b.

The formula hole is checked while you type (and shows the variables to add them with a click). A variable that doesn't exist or an unclosed bracket are flagged there and in Diagnostics. Formulas only read variables: they can't do anything else, so they are safe.

Camera and several things at once ​

  • Camera: move (with the duration you want; 0 = automatic by distance), shift some pixels, place instantly, stop following and follow a character again, zoom (1 = normal), normal camera (follows the protagonist again, no zoom), shake with strength and fade. Move, zoom, shake and fade blocks have “and wait / without waiting”.
  • Several things at once: the Several things at once block (Flow category) splits the script into 2 to 6 branches that run at once; when all finish, the script continues through When all are done. That lets you fade while the character keeps walking, without cutting its animation. In Human reading it is written as “Do 2 things at once:” with “Branch 1:”, “Branch 2:” below.

Only the first time ​

The Only the first time block (Flow category) has two outputs: The first time and Every other time. The first time the script goes through it in the playthrough it takes the first one; after that, always the other. It is a classic in adventure games: “the first time you walk in, the protagonist comments on it; after that, not any more”.

  • It remembers by itself: there is no need to create a variable. What already happened is kept with the saved game, so it stays the same after loading.
  • Each block is its own: two blocks in the same script each remember their own, and when you duplicate a script or paste the block, the copy starts unused.
  • It counts on the way through: if the script is cut in the middle of the branch (a scene change, quitting the game), it does not start it again.
  • In text it is written like a condition: “Only the first time:” and, at the same level, “Every other time:” (“Otherwise:” also works).
text
On entering the scene Workshop:
    Only the first time:
        The protagonist says: “It smells of old oil.”.
    Every other time:
        The protagonist says: “Here again.”.

For the script-free reactions of an object or a hotspot there is the “Only the first time” box on each reaction, which does the same.

Rewind: retry from just before ​

When the player can die or fail (a guard that catches them, a trap, a countdown that reaches zero), you don't have to send them back to their last saved game: the game keeps a checkpoint and lets them go back to it.

  • It is set by itself when the game starts, when entering each scene (before its entry scripts) and when loading a saved game. It lives in memory: it doesn't take a save slot and it's lost when the game is closed.
  • Save a checkpoint (Scene category) sets one in the middle of a scene, for example right before a dangerous puzzle.
  • Back to the checkpoint leaves the whole game as it was at that moment (scene, inventory, variables, position). The script ends there.
  • End of game has the offering «Retry from just before» option: the end screen shows that button next to Quit to menu. Retrying goes back to the checkpoint and the game isn't marked as finished; Quit to menu does mark it.
  • In a multiplayer room there are no checkpoints (it would undo what the others did): the end shows a single button and going back does nothing.
  • With UI PRO the end screen is yours: the End of game slot (see UI PRO) gives the message, whether you can retry and the commands to retry and to go to the menu.
text
On using Trap:
    The protagonist says: “Ouch.”.
    End the game with the message “You fell into the pit.” offering «Retry from just before».

The guard does it without scripts: in On seeing you → And then → Game over, the Offer «Retry from just before» box. From code it's game.checkpoint(), game.rewind() and game.endGame(text, true).

When the player does nothing ​

The Player idle event fires when the player hasn't touched anything for a few seconds: no click, tap, mouse movement, wheel or key. It's for the classic adventure touch: the protagonist yawns, looks at the screen or asks “Are you still there?”.

  • It only counts with free control: while a script takes control away, a cinematic plays, a conversation, a minigame, the pause, the menu or the protagonist walking, the clock stops (it doesn't go back to zero). Anything the player does sets it to zero.
  • Once until they do something (the default) fires only once; and again every so many seconds fires again while the player stays idle. If the script takes control away, that time doesn't count.
  • Moving the mouse (an advanced setting of the event; by default, counts): with does not count, moving the mouse or sliding a finger without pressing does not reset the clock, only clicks, taps, the wheel and keys do. It lets the protagonist comment on things now and then even while the player moves the pointer around the screen. In text: … for 30 seconds and again every so many seconds [moving the mouse: does not count]:.
  • In a scene script it only counts in that scene; in a global one, in all of them. You can have several: one at 20 seconds and another at 60.
  • So it doesn't interrupt what the player is doing, mark it in the background (see Taking control away or running in the background).
text
When the player has done nothing for 30 seconds and again every so many seconds:
    The protagonist says: “Hello? Are you still there?”.

In a walkthrough, Wait runs the idle scripts once.

Loops ​

Three blocks in the Flow category to repeat things without copy-pasting:

  • Repeat N times: repeats what hangs from “Repeat” and, when done, the script continues through “When done”. In the human view: “Repeat 3 times:” with the steps below.
  • Repeat while {condition}: the same, but it checks a formula (coins < 5, not door_open…) before each turn; when it no longer holds, it continues through “When done”. It is the block for watching something until it happens.
  • Exit the loop: inside a loop, it cuts it right away and the script continues through “When done”.

Inside a loop always put something that waits (a “Wait”, a conversation, walking…) or that changes what the condition looks at: a loop that waits for nothing stops by itself after a few thousand steps with a warning in the console (except in routines that already gave control back, which may repeat forever). The panel warns about an empty loop and about an “Exit the loop” that is not inside a loop. To go through lists or data, use the Scripting plugin. Different from Repeat the script, which goes back to the start of the whole script.

Variables ​

The left column of Logic has two tabs: Scripts and Variables. A variable can be boolean (true or false), number or text, with an initial value; use them to remember progress (door_open, talked_to_gus). The yellow + creates a new one and the icon next to it imports or exports the list.

Built for lots of variables (thousands):

  • Search and filters: search by name and filter by Unused or by type. The list is drawn in windows, so it stays smooth with 5,000.
  • Groups by prefix: chapter1.key and chapter1.door are grouped under “chapter1” (also ch1_… when several share the same beginning). Each group collapses.
  • Where it is used: pick a variable to see how many places use it and jump to each one (a script block, a conversation, a scene, a text). A variable counts as used even when it only appears inside a formula or a [var:name] mark in a text. An amber dot marks the ones not used anywhere.
  • Rename without breaking anything: references are by identifier, and the formulas and the [var:…] / [calc:…] marks in texts that named it are updated too.
  • Bulk actions (⋯ button): clean up all the unused ones, change the prefix of the ones shown, or delete the ones shown. Everything can be undone with Ctrl+Z.
  • In the blocks: when you pick a variable in a block, the dropdown groups by prefix, always has a search box and, if you type a name that does not exist, offers Create “…” as: with three buttons, yes/no, number and text, without leaving the script. The one the block asks for comes first and is highlighted (an “Add to” asks for a number), and Enter creates that one.

The + in Scripts only offers events (a script with no event to start it would do nothing); the other blocks are added afterwards, inside the script.

Warnings ​

The script header shows N warnings ▾ (in red if any of them is an error). Clicking it (or pressing Enter) opens the list, and each warning comes with what you can do:

  • Go to the block: in Human reading it centers it; in Nodes it frames it; in Text it selects its line. A block that is not connected to the event is only visible in Nodes, so it takes you there.
  • Choose…: opens the chip of the missing parameter (or the one that pointed to something deleted).
  • Create it again: if a block uses a variable that no longer exists, it creates it again with the same identifier and the block works again without touching it.
  • Remove the block (a block of a type that no longer exists) and Add a step inside (an empty loop).

When there is a warning:

  • Something is really missing: an empty slot the game needs (whom to give the item to, no; the item, yes). Parameters that were never filled in but have a default value do not warn: the chip shows in gray what the game will do (“and wait until it arrives”, “smooth”). When empty means something, the chip says so (“Follow” with nobody: stops following).
  • It points to something that no longer exists: the chip turns red with “(deleted)”.
  • An event with an empty slot (an “On using…” without a verb): that script will never fire.
  • Formulas that cannot be understood, a ‹parameter› the script does not declare, code with a syntax error and blocks of a plugin that is off.

The script, the script list (With warnings filter), the Logic badge and Diagnostics count exactly the same. Hovering a chip shows its help (for example, “0 = automatic by distance”).

Long scripts: fold, search and replace ​

  • Fold: every “If…”, loop or “several things at once” has a ▾ on its left. Folded, it takes one line with what it hides (· 12 steps). At the top right of the script, Fold all and Unfold all. It is remembered per script, also after reloading.
  • Search (Ctrl+F with Logic in view): searches the block sentences, what is said, variables, items, scenes, characters and notes, ignoring accents and case. Results are highlighted; Enter and Shift+Enter jump between them (unfolding what is needed; a block not connected to the event is shown in Nodes). In the Nodes view it frames each result; in Text it searches the text itself, selects it and marks its line in the margin.
  • Replace (the button on the left of the bar, in Human reading and Nodes; in Text you replace by editing the text itself): changes the script lines (what is said and the texts of the blocks), in the text language you are editing. Replace changes the current result and Replace all (Ctrl+Enter), all of them; it is undone at once with Ctrl+Z. If a line is also said by other scripts, it asks first; if it has other translations, it reminds you to check them in Texts. Names of variables, items or scenes are not replaced: they are changed by renaming them (and they change in the whole project).
  • Nodes on opening: a script that fits whole at a readable size is shown whole; a long one opens on the event, on the left, at a readable size, and the minimap appears (bottom right, it can be hidden with its button). Arrange does the same after placing the blocks.
  • In Human reading at 1920 or more, the column gets wider (sentences stay under about 100 characters).
  • Going to a block (from a warning, Diagnostics, “Used in” or the search) unfolds what contains it and centers it, also in very long scripts.
  • Used in (items, characters, effects, objectives, variables…) takes you to the exact block and highlights it. Callable scripts show Called from. Each use starts with its scene. Deleting a script that is in use (another script calls it, or it is a guard's “On seeing you”) warns you first with Go to each place (Deleting something that is in use).
  • The script list also searches inside the scripts (texts, variables, characters, blocks), has a With warnings filter, can hide scenes without scripts and collapse everything.
  • Ctrl+click on a parameter opens what it references.
  • Conversations and scripts from another scene show their scene in the block itself (“Chat with Gus · The tavern”).

Related tutorials ​

On the editor's home screen, Tutorials:

  • Variables, conditions and chance: Number and yes/no variables: add, set and toggle. Conditions with comparisons, nested “Otherwise” branches and a random chance.
  • Cinematics: A real cinematic: fades, cinema bars, a moving camera, a character who walks and talks, a shake, waiting for a click and the option to skip it with Esc.
  • Several endings: Ending the game with different messages depending on what the player has done: whether they carry an item, whether they have been in a scene or according to a variable.
  • NPC with their own routine: A baker who works by himself while the player explores: gives control back, walks between waypoints across an NPC-only area, talks without waiting and repeats. When you talk to him he stops and waits.
  • Companions and characters between scenes: A dog that follows the player (and changes scene with them) and a character taken to another scene from a script.
  • Regions: areas that react: Floor regions with events on entering and leaving, and a region that starts deactivated and is activated from a script (a trap with a switch).
  • Stealth: guards and hiding places: A guard on his rounds who sees the player if they pass in front of him (not behind), a hiding place where he can't see you and how to send the player back to the entrance when seen.
  • Timers, countdowns and in-game text: A countdown shown on the alarm screen, in-game text on that same screen, warnings along the way, a door that won’t let you out while the bomb is armed and how to cancel it before it ends.
  • Who has control: Three characters do the same thing in three ways: with a script that takes control from the player, with a background one and with one that gives it back halfway. Plus “Say” waiting or without waiting, and a guard who talks on his own in a loop.
  • Reusable scripts with parameters: A callable script run from several places, and random numbers to decide the result. With parameters, the same script works for several characters or amounts.
  • Formulas and calculations: A shopkeeper who calculates the price with a formula, a compound condition in a single block (“if … and … holds”) and results written in lines with [calc:…].