Block reference
VERB has 153 logic blocks in 8 categories. Each block reads as a sentence in the Human view and as a node in the Node view (and as a line in the Text view): they are the same logic.
How to read this page
Each block's sentence shows its holes ‹like this›. In the editor, each hole is a drop-down with autocompletion based on the context (the script's scene, the chosen character…). Ctrl+click on a hole jumps to what it references.
Events
15 blocks.
Interaction
Fires when the player applies a verb (Look, Use, Talk, Pick up) to a hotspot, object or character in the scene.
- Type:
event.verb - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
verb (verb) | verb | use | |
target (target) | scene element | — |
TIP
Create these scripts instantly from the element's inspector (“Scripts of this element”) or by right-clicking it in the scene.
Use item with…
Fires when an inventory item is used on something in the scene (dragging the key to the door).
- Type:
event.useItem - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
item (item) | inventory item | — | |
target (target) | scene element | — |
TIP
It is the basis of almost every puzzle: combine it with conditions for different answers depending on progress.
Inventory item
Fires when an inventory item is used or looked at on its own (reading a note, turning on the radio, eating something).
- Type:
event.inventory - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
verb (verb) | verb | use | |
item (item) | inventory item | — |
TIP
Use: with the “Use” verb in the bar, or by clicking the item again once picked. Look: right-click on it. Without a “look” script, its description is said.
Combine items
Fires when two inventory items are combined with each other.
- Type:
event.combine - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
item A (itemA) | inventory item | — | |
item B (itemB) | inventory item | — |
TIP
Simple combinations (A + B → C) need no script: use the item's “Combinations” in Inventory.
On entering scene
Runs every time the player enters the given scene.
- Type:
event.enterScene - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene (scene) | scene | — |
TIP
Ideal for music, arrival dialogues or checking variables when coming back to a place.
Game start
Runs only once, when a new game starts.
- Type:
event.gameStart - Outputs: continue
TIP
Use it for the introduction: a title card, the player's first line and the first objective.
An object is picked up
Fires when the player starts dragging a scene object (as soon as it moves; a click without moving is still a normal click).
- Type:
event.drag - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
object (prop) | scene object | — |
TIP
The object needs “Can be dragged” turned on in the scene inspector (or an “Allow dragging” from a script).
An object is dropped
Fires when the player drops an object they were dragging. With a target (hotspot, region, object or character) it only fires if dropped on that target; with no target, anywhere.
- Type:
event.drop - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
object (prop) | scene object | — | |
target (target) | dropTarget | — | empty = anywhere, optional |
TIP
If the object is set to go back to its place and is dropped where no target has a script, it returns to where it was by itself. To snap it into its slot, use “Slide an object” in the script.
Enter region
Fires when the player steps on a floor region.
- Type:
event.regionEnter - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
who (who) | regionWho | player | optional |
region (region) | region | — |
TIP
Traps, music changes by zone or characters who react when you get close.
Leave region
Fires when the player leaves a region.
- Type:
event.regionExit - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
who (who) | regionWho | player | optional |
region (region) | region | — |
NPC sees the player
Fires when an NPC sees the player: in front of them (in a cone towards where they face) and closer than the given range.
- Type:
event.sees - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | — | |
range (distance) | number | 260 | empty: 260 |
TIP
Vision moves and turns with the NPC, so it works for guards on patrol. It fires once each time the player enters their field of view, and not during cutscenes.
NPC changes alert
Fires when a guard changes to the chosen state (calm, suspicious or on alert), either because of what they see or because a script sets it. Only when changing to that state: changes to the other two do not fire it.
- Type:
event.alert - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | — | |
state (state) | alertState | alert | empty: alert |
TIP
Needs the character’s advanced vision (Behaviour). It runs in addition to whatever is in “On seeing you”.
Countdown ends
Fires when a countdown reaches zero.
- Type:
event.countdownEnd - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
variable (variable) | variable | — |
TIP
It can be a global script (happens in any scene) or a scene script (only if the player is in it).
Player idle
- Type:
event.idle - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
seconds (seconds) | number | 20 | 1 to 600 |
repeat (repeat) | yes/no | once until they do something | |
moving the mouse (mouse) | choice | 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. So the protagonist can comment on things even while the player moves the pointer, optional |
Callable script
A script with no trigger of its own: it only runs when another script calls it with “Run script” or from a dialogue option. It can declare parameters (character, item, element, text or number) that it receives when called.
- Type:
event.called - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
parameters (params) | script parameters | — | optional |
TIP
Group repeated sequences (a cutscene, giving an item) so you don't duplicate them. With parameters, a single “Greet” script works for any character: inside, it is chosen as ‹who› and written [param:who] in texts.
Conditions
22 blocks.
Has item
Checks whether the player carries an item in the inventory.
- Type:
cond.hasItem - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
item (item) | inventory item | — |
TIP
It has two outputs: “Yes” and “No”. Connect each branch to what should happen.
Character has item
Checks whether a specific character carries an item, even if they are not the current player.
- Type:
cond.characterHasItem - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
item (item) | inventory item | — |
TIP
Useful with several playable characters and inventory per character.
Carries on a point
- Type:
cond.carries - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
item (item) | inventory item | — | |
point (point) | charAttach | any | hand, head… or any, depends on “character” |
Has at least N
Checks whether the player carries at least that amount of an item.
- Type:
cond.itemCount - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
amount (amount) | number | 2 | empty: 1 |
item (item) | inventory item | — |
TIP
“If they have at least 3 coins” → pay with “Remove 3 units…”.
Container has
Checks whether a container holds an item.
- Type:
cond.containerHas - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
container (container) | container | — | |
item (item) | inventory item | — |
TIP
Placement puzzles: “if the scales contain the gold weight”.
Compare variable
Compares the value of a variable (yes/no, number or text).
- Type:
cond.variable - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
variable (variable) | variable | — | |
comparison (op) | comparison | == | |
value (value) | value | — | depends on “variable” |
TIP
Store progress in yes/no variables with clear names: door_open, talked_to_gus.
Object over a target
Checks whether a scene object is now on top of a target (hotspot, region, object or character), for example after dragging it.
- Type:
cond.propOver - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
object (prop) | scene object | — | |
target (target) | dropTarget | — |
TIP
Puzzles where several pieces must be placed: on each drop, check whether all of them are in place.
Hints given
Takes the “Yes” branch if at least that many different hints of an objective (puzzle) have been given so far in the game. When the hints run out and the last one is repeated, the repeat does not count.
- Type:
cond.hintsUsed - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
hints (count) | number | 1 | |
objective (puzzle) (objective) | objective | — |
TIP
To reward players who solve it without help, or to change what a character says after several hints.
Objectives solved
Checks whether at least that number of journal objectives have been completed, whichever they are.
- Type:
cond.objectivesDone - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
objectives (count) | number | 1 |
TIP
To open an area or an ending once the player has made some progress.
Object visible
Checks whether a scene object is visible.
- Type:
cond.propVisible - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene object (prop) | scene object | — |
Inventory item state
- Type:
cond.itemState - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
item (item) | inventory item | — | |
state (state) | itemState | — | depends on “item” |
Object state
Checks which state a scene object is in (open, closed, on…).
- Type:
cond.propState - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene object (prop) | scene object | — | |
state (state) | state | — | depends on “scene object” |
Time of day
Checks what time of day it is in the game: dawn, day, dusk or night.
- Type:
cond.timeOfDay - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
time (time) | choice | night |
TIP
It goes with the project’s times of day and with “Change the time of day”. Use it for things that only happen at a certain time: a shop closed at night, a guard who is asleep. Without times of day in the project, it is always day.
Scene visited
Checks whether the player has already been in a scene.
- Type:
cond.sceneVisited - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene (scene) | scene | — |
NPC sees the player
Checks whether an NPC can see the player right now (in front of them and within range).
- Type:
cond.sees - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | — | |
range (distance) | number | 260 |
Alert state
Checks which alert state a guard is in right now (calm, suspicious or on alert). Without advanced vision, it uses the last state a script set.
- Type:
cond.alert - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | — | |
state (state) | alertState | alert |
Player in region
Checks whether the player is currently inside a region (even if it is deactivated).
- Type:
cond.inRegion - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
region (region) | region | — |
TIP
For hiding places: “When Bruno sees the player” → “If the player is in the hiding place”, nothing happens.
Current player
Checks which character the player controls (games with several playable characters).
- Type:
cond.currentPlayer - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | — |
Objective state
Checks the status of a journal objective (active, completed, failed).
- Type:
cond.objective - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
objective (objective) | objective | — | |
status (status) | objective status | done |
Formula (condition)
Takes the “Yes” branch if the formula holds. Replaces several chained conditions.
- Type:
cond.formula - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
condition (formula) | formula | — |
TIP
“if (coins >= 10 and has_map) or is_night holds:”. With “and”, “or”, “not” and brackets.
Touch screen
Checks whether the game is being played with a finger on a touch screen.
- Type:
cond.touchScreen - Outputs: Yes · No
TIP
To adapt a line or a puzzle: “Tap the lever” on a phone and “Click the lever” on a computer. In test walkthroughs it always takes the “No” branch.
Chance
Takes the “Yes” branch with the given percentage of probability.
- Type:
cond.random - Outputs: Yes · No
| Parameter | Type | Default | Notes |
|---|---|---|---|
percentage (percent) | number | 50 | 0 to 100 % |
TIP
Perfect for varied lines: a parrot that says something different each time.
Scene actions
78 blocks.
Say
A character says a line: subtitle in the project's style, talk animation or lip-sync, and voice if the line has audio. The selector decides whether the script waits for it to finish (the default) or carries on at the same time.
- Type:
act.say - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
wait (wait) | yes/no | (waiting) | |
text (text) | translatable text | — |
TIP
The text goes to the Texts table, so it is translated and voiced from there. “(without waiting)” is for background remarks: a drunk who sings, a parrot that repeats lines while the player explores.
Walk to
Makes a character walk to a hotspot, object, entrance or character.
- Type:
act.walkTo - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
destination (target) | scene element | — | |
wait (wait) | yes/no | and waits to arrive |
TIP
With “without waiting” the script carries on while they walk (useful for several characters at once).
Say one of several
A character says a single line from a list: in order (starting over at the end), at random (without repeating the previous one) or in order staying on the last one.
- Type:
act.sayOneOf - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
order (mode) | line order | cycle | |
lines separated by | (text) | translatable text | — |
TIP
Separate the lines with “|”. Each block remembers where it is, also in saved games: ideal for “looking” at something several times without repeating yourself.
Place instantly
Instantly places a character at an entrance, hotspot, object or next to another character, without walking.
- Type:
act.teleport - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
destination (target) | scene element | — |
TIP
Ideal after a fade to black or to hide someone. At an entrance, it also takes its facing.
Turn towards
Turns the character to face a hotspot, object or character.
- Type:
act.faceTarget - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
target (target) | scene element | — |
TIP
No need to work out by hand whether they should face left or right in conversations.
Face direction
Turns a character towards a direction.
- Type:
act.face - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
direction (direction) | direction | down |
Animation
Plays a character animation: a standard state, a custom animation or one from the rig/Spine.
- Type:
act.animate - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
animation (anim) | character animation | interact | depends on “character” |
repeat (loop) | yes/no | once |
TIP
Create your own animations with the character's “+” (jump, drink…).
Paired animation
- Type:
act.pairAnimate - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
distance (gap) | number | 60 | |
other character (other) | character | — | |
side (side) | choice | auto | |
their animation (anim) | character animation | interact | depends on “character” |
the other's (otherAnim) | character animation | interact | depends on “other character” |
Carry an item
- Type:
act.carryItem - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
item (item) | inventory item | — | |
point (point) | charAttach | — | hand, head…, depends on “character” |
until when (whileHeld) | yes/no | while they have it |
Carry an image
- Type:
act.carryImage - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
image (image) | image | — | |
point (point) | charAttach | — | hand, head…, depends on “character” |
Put down what they carry
- Type:
act.putDown - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
point (point) | charAttach | — | hand, head…, depends on “character” |
then (reset) | yes/no | and is left with nothing |
Look at something
- Type:
act.lookAt - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
what (target) | scene element | — | |
transition seconds (seconds) | number | 0.4 | 0 = instantly |
wait (wait) | yes/no | without waiting |
Look at a point
- Type:
act.lookAtPoint - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
x (x) | number | 480 | scene px |
y (y) | number | 270 | |
transition seconds (seconds) | number | 0.4 | 0 = instantly |
wait (wait) | yes/no | without waiting |
Stop looking
- Type:
act.lookStop - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player |
Look at what is nearby
- Type:
act.lookAround - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
look (on) | yes/no | looks |
Skin
- Type:
act.setSkin - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player | |
skin (skin) | charSkin | default | depends on “character” |
Change scene
Takes the player to another scene and entrance, with a transition (fade, wipe, iris, cut…).
- Type:
act.changeScene - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene (scene) | scene | — | |
entrance (entrance) | entrance | — | optional, depends on “scene” |
transition (transition) | transition | fade |
Split screen
- Type:
act.splitView - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene (scene) | scene | — | |
half (side) | choice | right | |
seconds (seconds) | number | 3 | 0 = until removed |
entrance (focus) | entrance | — | empty: the center, optional, depends on “scene” |
wait (wait) | yes/no | and wait for it to end |
Remove the split screen
- Type:
act.splitViewEnd - Outputs: continue
Back to previous scene
Takes the player back to the scene they were in before the last change, to the same spot and facing the same way.
- Type:
act.goBack - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
transition (transition) | transition | fade |
TIP
For generic exits (closing a map, leaving a close-up, coming back from a chest's inventory) that don't know which scene the player comes from.
Move character to scene
Moves another character to another scene (or removes them from the current one).
- Type:
act.moveCharacter - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | — | |
scene (scene) | scene | — | optional |
entrance (entrance) | entrance | — | optional, depends on “scene” |
Switch player
Changes the character the player controls.
- Type:
act.setPlayer - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | — | |
seconds of fade to black (fade) | number | 0.3 | 0 = hard cut |
Enable region
Activates or deactivates a floor region.
- Type:
act.enableRegion - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
region (region) | region | — | |
state (enabled) | yes/no | inactive |
Obstacle
Activates or clears an obstacle painted in the scene (the ones from the Obstacle tool).
- Type:
act.enableObstacle - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
obstacle (obstacle) | obstacle | — | |
state (enabled) | yes/no | clear |
TIP
A falling rock, a door that opens or a table that is moved aside. Object obstacles (their “footprint”) already disappear by themselves when the object is hidden.
Change state
Changes the state (and the sprite) of a scene object, optionally with a sound. If it is already in that state (also when asked from another scene), it does nothing: its animation does not restart and its end actions do not repeat.
- Type:
act.setPropState - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene object (prop) | scene object | — | |
state (state) | state | — | depends on “scene object” |
sound (sound) | sound | — | optional |
Slide an object
Slides an object of the current scene until it is centred on a target in that scene (hotspot, region, object or character) in the given seconds, and waits for it to arrive. If the object or the target is not in the current scene, it does nothing.
- Type:
act.moveProp - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
object (prop) | scene object | — | |
target (target) | dropTarget | — | |
seconds (seconds) | number | 0.4 |
TIP
With 0 seconds the object jumps instantly. Its new position is kept in saved games.
Allow or prevent dragging
Allows or prevents the player from dragging a scene object. If it is being dragged when prevented, the object goes back to where it was.
- Type:
act.setDraggable - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
action (enabled) | yes/no | Allow | |
object (prop) | scene object | — |
TIP
Lock a piece that is already in place so it cannot be moved again. It is kept in saved games.
Give a hint
Gives the next hint of an objective: the narrator says it and, if the hint asks for it, what it points at is highlighted for a few seconds. If there are no hints left, a notice appears.
- Type:
act.giveHint - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
objective (puzzle) (objective) | objective | — |
TIP
Hints are written in each journal objective. Players can also ask for them from the pause menu or the journal.
Highlight
Marks a hotspot, region, object or character for a few seconds to draw the player’s attention.
- Type:
act.highlight - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
what (target) | dropTarget | — | |
seconds (seconds) | number | 5 |
TIP
Handy in tutorials or after a hint: “Highlight the lever for 5 seconds”.
Change the time of day
Changes the time of day of the game (dawn, day, dusk or night): the scene’s colors move to those of that time over the given seconds.
- Type:
act.setTimeOfDay - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
time (time) | choice | night | |
seconds (seconds) | number | 2 | 0 = at once |
TIP
The time is saved with the game and stays when you change scene. With 0 seconds it changes at once.
Set the alert
Puts a guard into calm, suspicious or on alert. With advanced vision the guard reacts (stops or goes searching) and the “When … becomes…” scripts fire.
- Type:
act.setAlert - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | — | |
state (state) | alertState | calm |
TIP
A guard on alert stays that way until a script calms them down with “Leave … calm”.
Next state
Moves a scene object to its next state, and from the last one back to the first.
- Type:
act.cycleProp - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene object (prop) | scene object | — |
TIP
Dials, levers, switches, combination wheels: a single block instead of one condition per state.
Show object
Makes a scene object visible.
- Type:
act.showProp - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene object (prop) | scene object | — |
Hide object
Hides a scene object (and its automatic obstacle, if it has one).
- Type:
act.hideProp - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
scene object (prop) | scene object | — |
Show layer
Shows an image layer of the scene (a background, playfield or foreground layer).
- Type:
act.showLayer - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
layer (layer) | layer | — |
TIP
Handy when you work with layers exported from your image editor: show or hide whole pieces of the room.
Hide layer
Hides an image layer of the scene.
- Type:
act.hideLayer - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
layer (layer) | layer | — |
TIP
The change is kept in saved games.
Change a layer's image
Replaces the image of a layer with another one (leave the image empty to go back to the original).
- Type:
act.setLayerImage - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
layer (layer) | layer | — | |
new image (image) | image | — | optional |
TIP
The same room before and after the fire, or a door layer swapped for its open version. Keep both images the same size.
Enable hotspot
Activates or deactivates a hotspot. Deactivated hotspots cannot be pointed at.
- Type:
act.enableHotspot - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
hotspot (hotspot) | hotspot | — | |
state (enabled) | yes/no | inactive |
Rename
Changes the visible name of a hotspot, scene object, character or inventory item during the game.
- Type:
act.rename - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
what (target) | something with a name | — | |
new name (text) | translatable text | — |
TIP
“Stranger” becomes “Bruno” when he introduces himself; the “Rusty key” becomes “Clean key” after rubbing it. It is kept in the saved game.
Text above an object
- Type:
act.propText - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
text (text) | translatable text | — | it can carry marks like [var:points]: the text changes by itself when the variable changes |
object (prop) | scene object | — | |
typeface (font) | choice | `` | Google fonts load by themselves and need internet, unless the project brings the file with that name, optional |
color (color) | light | #ffffff | optional |
Clear the text of an object
- Type:
act.propTextClear - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
object (prop) | scene object | — |
Change description
Changes what the player says when looking at a hotspot, scene object, character or inventory item.
- Type:
act.describe - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
what (target) | something with a name | — | |
new description (text) | translatable text | — |
TIP
It only affects the default description: if there is a “On looking at…” script, the script wins.
Add to inventory
Adds an item to the player's inventory.
- Type:
act.addItem - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
item (item) | inventory item | — |
Add units
Adds several units of a stackable item (coins, arrows, matches). The inventory shows a single slot with the number.
- Type:
act.addItems - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
amount (amount) | number | 1 | |
item (item) | inventory item | — |
TIP
Mark the item as “Stackable” in Inventory. With a non-stackable item it is the same as “Add to inventory”.
Remove units
Removes several units of a stackable item. If none are left, it disappears from the inventory.
- Type:
act.removeItems - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
amount (amount) | number | 1 | |
item (item) | inventory item | — |
Open container
Opens a container's window: the player takes items out with a click and puts their own in by clicking them in their inventory. The script waits until it is closed.
- Type:
act.openContainer - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
container (container) | container | — |
TIP
Containers are created in Inventory → Containers, with their initial contents. What is inside is kept in the saved game.
Put into container
Puts units of an item into a container (without removing them from the inventory).
- Type:
act.containerAdd - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
amount (amount) | number | 1 | |
item (item) | inventory item | — | |
container (container) | container | — |
Take from container
Takes units of an item out of a container (they disappear; to give them to the player, also add “Add … to the inventory”).
- Type:
act.containerRemove - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
amount (amount) | number | 1 | |
item (item) | inventory item | — | |
container (container) | container | — |
Give item
Passes an item from the current player to another character's inventory.
- Type:
act.giveItem - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
item (item) | inventory item | — | |
character (character) | character | — | empty: player |
TIP
With “Inventory per character” (Settings → Players) each one carries their own: that's how Max can send the card to Lola by radio. With a shared inventory it is the same as “Add to inventory”.
Inventory item state
- Type:
act.itemState - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
item (item) | inventory item | — | |
state (state) | itemState | — | depends on “item” |
Swap an item for another
- Type:
act.swapItem - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
item (item) | inventory item | — | |
new item (newItem) | inventory item | — |
Remove from inventory
Removes an item from the inventory.
- Type:
act.removeItem - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
item (item) | inventory item | — |
Sound
Plays a sound effect.
- Type:
act.playSound - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
sound (sound) | sound | — | |
vibrates (haptic) | choice | auto | on a phone, Android. «The game setting»: what Settings → Mouse and keyboard → Vibration says, optional |
Music
Changes the background music (with a fade).
- Type:
act.playMusic - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
music (sound) | sound | — |
Stop music
Stops the music.
- Type:
act.stopMusic - Outputs: continue
Quit the game
Closes the game: saves what is pending and closes the window.
- Type:
act.quitGame - Outputs: continue
TIP
It only closes where there is a window to close, like the desktop game. In the browser and in Play it does nothing, so do not leave an ending that depends on this block alone.
Vibrate
Makes the phone vibrate with the chosen strength: light, medium or strong.
- Type:
act.vibrate - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
how much (level) | choice | medium | only on a phone, Android, and if the player does not turn it off in the Options; it does nothing on a computer or an iPhone |
TIP
It only vibrates on Android phones and if the player has not turned it off in Options. On a computer and on iPhone it does nothing.
Lower the music while speaking
Changes when the music goes down while someone speaks: as the project says, only on lines that have a recorded voice, always or never.
- Type:
act.speechDuck - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
when (mode) | choice | project |
TIP
It is saved with the game. Handy for a specific moment: “never” during a concert, “always” in an important conversation. If the player turns it off in Options, their choice wins.
Set the ambience
Changes the ambience sound of the current scene to another one, with a fade. With no sound chosen, it leaves the scene without ambience.
- Type:
act.setAmbience - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
ambience (sound) | sound | — | empty: silence |
fade in seconds (fade) | number | 1 |
TIP
The change belongs to this scene and is remembered in the game: when you come back, the one you set keeps playing until you use “Scene ambience”.
Scene ambience
Goes back to the ambience sound the scene has in the editor, undoing “Set the ambience”.
- Type:
act.resetAmbience - Outputs: continue
Looping sound
Starts repeating a sound without stopping: an engine, an alarm, a dripping tap.
- Type:
act.loopSound - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
sound (sound) | sound | — | |
until when (untilStopped) | yes/no | until stopped |
TIP
With “until stopped” it keeps playing even if you change scene, until “Stop sound”. With “only in this scene” it goes quiet when you leave.
Stop sound
Stops a sound that is playing, with a fade. With no sound chosen, it stops every looping sound.
- Type:
act.stopSound - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
sound (sound) | sound | — | empty = all loops, empty: all loops, optional |
fade in seconds (fade) | number | 0.3 |
Scene sound
Turns a positioned sound of the scene on or off: the ones placed in the Scene Editor that get louder as you approach.
- Type:
act.sceneSound - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
action (on) | yes/no | Turn on | |
positional sound (sceneSound) | sceneSound | — |
TIP
It is remembered in the game. For a radio that is switched off, a fountain that stops flowing or a machine that starts up.
Sound from something
Plays a sound once as if it came from a character, an object or a hotspot: it is quieter the farther away it is, and it comes from the side where it is.
- Type:
act.playSoundFrom - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
sound (sound) | sound | — | |
from (target) | scene element | — | character, object or zone |
TIP
For a door slamming in the background or a phone ringing at the other end of the scene. If it is too far away, it is not heard.
Change the acoustics
Changes the acoustics the world sounds with (a cave, a large hall, a telephone…), with the given mix.
- Type:
act.setAcoustics - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
acoustics (preset) | acoustics | scene | |
mix (mix) | number | — | empty = its own, 0 to 100 %, empty: its own, optional |
TIP
It lasts until the scene changes; the new scene sounds with its own. Choosing the scene’s one undoes the change. Your own acoustics are created in Settings → Sound.
Music volume
Raises or lowers the music to a percentage of its normal volume, gradually over the given seconds.
- Type:
act.musicVolume - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
volume (volume) | number | 100 | 100 = normal, 0 to 100 % |
seconds (seconds) | number | 1 | 0 = at once |
TIP
It is saved with the game and stays that way until you set it back to 100%. It is separate from the volume the player chooses in Options.
Wait for click
Pauses the script until the player clicks.
- Type:
act.waitClick - Outputs: continue
Follow character
A character starts following another one (or stops). Followers change scene with the player.
- Type:
act.follow - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | — | |
whom (leader) | character | player | empty = stop following, empty: stops following, optional |
Skippable cutscene
Marks the start or the end of a cutscene that can be skipped with Esc.
- Type:
act.cutscene - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
start/end (mode) | yes/no | Start |
TIP
When skipped, lines, waits, walks and effects are completed instantly and the final state is correct.
Player control
While a script runs, the player cannot act. “Give back” lets them play even though the script continues; “Take away” blocks them again.
- Type:
ui.control - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
state (state) | yes/no | Return |
TIP
For living NPCs: an “On entering the scene” script that gives control back and then makes the bartender walk and talk in a loop with waits.
Show/hide interface
Shows or hides the interface (verbs, inventory, menu) and adds or removes cinema bars.
- Type:
ui.hud - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
visibility (visible) | yes/no | Hide | |
cinema bars (bars) | yes/no | without bars |
TIP
When starting or loading a game, the interface is shown again and the bars are removed. With bars on, the voice-over, lines and conversation options are placed outside them so they are not covered.
Wait
Waits a number of seconds.
- Type:
act.wait - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
seconds (seconds) | number | 1 |
Repeat the script
Goes back to the first step of the script.
- Type:
act.repeat - Outputs: none
TIP
For looping NPC routines after “Give control back to the player”; they stop by themselves when leaving the scene. In a normal script, the safety limit cuts loops without waits.
Run script
Runs another script (usually a “Callable script”) and waits for it to finish.
- Type:
act.runScript - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
script (script) | script | — |
Run script with data
Runs a callable script passing a value for each of its parameters, and waits for it to finish.
- Type:
act.runScriptWith - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
script (script) | script | — | |
data (args) | data for the script | — | depends on “script” |
TIP
From another script with parameters, ‹name› passes on the value it received (chained scripts).
End of game
Ends the game showing a final text.
- Type:
act.endGame - Outputs: none
| Parameter | Type | Default | Notes |
|---|---|---|---|
message (text) | translatable text | — | |
retry (retry) | yes/no | without retrying | the end screen offers to go back to the last checkpoint: when entering the scene or with «Save a checkpoint» |
Save a checkpoint
- Type:
act.checkpoint - Outputs: continue
Back to the checkpoint
- Type:
act.rewind - Outputs: none
Variables
7 blocks.
Set variable
Assigns a value to a variable.
- Type:
var.set - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
variable (variable) | variable | — | |
value (value) | value | — | depends on “variable” |
Add to variable
Adds to (or subtracts from, with negatives) a numeric variable.
- Type:
var.add - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
amount (amount) | number | 1 | |
variable (variable) | variable | — |
Random number
Stores a random number in a variable.
- Type:
var.random - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
variable (variable) | variable | — | |
minimum (min) | number | 1 | |
maximum (max) | number | 6 |
Countdown
Sets a numeric variable to that many seconds and counts it down one by one. With “showing it on screen” a clock appears at the top with the variable's name.
- Type:
var.countdown - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
variable (variable) | variable | — | |
seconds (seconds) | number | 30 | |
on screen (visible) | yes/no | showing it on screen | |
above (at) | scene object | — | an object in the scene: the countdown shows on top of it, centered and as tall as it, like a screen, a clock or a bomb. Empty: at the top, in the interface, optional |
typeface (font) | choice | `` | only above an object. Google fonts load by themselves and need internet, unless the project brings the file with that name, optional |
color (color) | light | #ff3b30 | only above an object, optional |
TIP
It stops while paused, is kept in saved games and continues even if you change scene. When it reaches zero, “When the countdown … reaches zero” fires. You can read what is left with “if time is less than 10”.
Stop countdown
Stops a countdown (the variable keeps what was left) and removes the clock from the screen.
- Type:
var.countdownStop - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
variable (variable) | variable | — |
Calculate with formula
Calculates the value of a variable with a one-line formula: variables by name, operations, comparisons and functions.
- Type:
var.formula - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
variable (variable) | variable | — | |
formula (formula) | formula | — |
TIP
Examples: “damage = strength * 2 + random(1, 6)”, “price = max(1, price - discount)”, “open = has_key and not is_night”. For yes/no variables, whether the formula holds is stored.
Toggle variable
Flips a yes/no variable.
- Type:
var.toggle - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
variable (variable) | variable | — |
Dialogue
7 blocks.
Conversation
Starts a conversation with options (dialogue tree).
- Type:
dlg.start - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
conversation (dialogue) | conversation | — |
TIP
Options can have conditions, hide after being chosen, change variables and launch scripts.
Enable/disable option
Enables or disables a specific option of a conversation from any script.
- Type:
dlg.option - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
conversation (dialogue) | conversation | — | |
state (enabled) | yes/no | enable | |
option (option) | conversation option | — | depends on “conversation” |
TIP
Enabling it also shows it again if it was “once” and had already been chosen. That way a new clue opens a new question without creating variables.
Change option text
Changes the text of a conversation option (what the player chooses and says).
- Type:
dlg.renameOption - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
conversation (dialogue) | conversation | — | |
option (option) | conversation option | — | depends on “conversation” |
new text (text) | translatable text | — |
Title card
Shows a full-screen title card (“Chapter 1”, “Later…”).
- Type:
dlg.title - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
text (text) | translatable text | — | |
seconds (seconds) | number | 3 |
Narrator
Narrator text without a character.
- Type:
dlg.narrate - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
text (text) | translatable text | — |
Objective
Activates, completes or fails a journal objective (a notice appears on screen).
- Type:
obj.set - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
objective (objective) | objective | — | |
status (status) | objective status | active |
Read document
Shows a readable document (letter, map, book) and keeps it in the journal.
- Type:
doc.open - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
document (document) | document | — |
Media
10 blocks.
Video
Plays a full-screen video, skippable or mandatory.
- Type:
media.video - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
video (video) | video | — | |
skippable (skippable) | yes/no | (skippable) |
Full-screen image
Shows a full-screen image for a few seconds.
- Type:
media.image - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
image (image) | image | — | |
seconds (seconds) | number | 3 |
Particles
Turns on, turns off or fires a burst from a particle emitter placed in the scene.
- Type:
fx.emitter - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
emitter (emitter) | particle emitter | — | |
action (mode) | action | on |
Scene lighting
Changes the lighting of the whole scene with a smooth fade. “Normal light” brings back its original look.
- Type:
fx.light - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
light (color) | light | #ffffff | |
seconds (seconds) | number | 1 |
TIP
For switch, candle or torch puzzles. It is remembered per scene and in saved games.
Switch on, off or change light
- Type:
light.set - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
on (on) | yes/no | Switch on | |
light (light) | light | — | |
intensity in % (intensity) | number | 0 | 0 = its own |
color (color) | light | `` | |
seconds (seconds) | number | 1 | 0 = instantly |
wait (wait) | yes/no | without waiting |
Light beam
- Type:
light.beam - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
light (light) | light | — | |
how it looks (mode) | choice | keep | |
beam opacity in % (opacity) | number | -1 | -1 = as it is |
edge softening in px (softness) | number | -1 | -1 = as it is |
fade (fade) | choice | keep | |
seconds (seconds) | number | 1 | 0 = instantly |
wait (wait) | yes/no | without waiting |
Light reach
- Type:
light.shape - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
light (light) | light | — | |
reach in px (radius) | number | 0 | 0 = as it is; point lights and spotlights |
edge softness in % (falloff) | number | -1 | -1 = as it is |
seconds (seconds) | number | 1 | 0 = instantly |
wait (wait) | yes/no | without waiting |
Move a light
- Type:
light.move - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
light (light) | light | — | |
x (x) | number | 480 | the centre of the light, in scene px |
y (y) | number | 270 | |
how (how) | choice | slide | |
seconds (seconds) | number | 1 | 0 = instantly |
wait (wait) | yes/no | without waiting |
Light animation
- Type:
light.anim - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
light (light) | light | — | |
animation (animate) | choice | keep | |
speed (speed) | number | 0 | 1 = normal; 0 = as it is |
strength in % (amount) | number | -1 | -1 = as it is |
Effect on character
Fires a one-off particle effect on a character (magic, smoke, poof…).
- Type:
fx.effect - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
effect (effect) | particle effect | — | |
character (character) | character | player |
Camera
9 blocks.
Move camera
Pans the camera to a point or character, with the duration you want (0 = automatic by distance).
- Type:
cam.panTo - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
destination (target) | scene element | — | |
seconds (seconds) | number | 0 | 0 = automatic by distance |
curve (ease) | choice | smooth | |
wait (wait) | yes/no | and wait until it arrives |
TIP
With «without waiting» the script continues while the camera moves.
Shift camera
Shifts the camera some pixels right or down from where it is (negatives go left or up).
- Type:
cam.panBy - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
right (dx) | number | 0 | negative = left |
down (dy) | number | 0 | negative = up |
seconds (seconds) | number | 0 | 0 = automatic |
curve (ease) | choice | smooth | |
wait (wait) | yes/no | and wait until it arrives |
Place camera
Places the camera instantly, centred on a point or character (a cut, no movement).
- Type:
cam.snapTo - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
destination (target) | scene element | — |
Camera follows character
The camera follows a character again.
- Type:
cam.follow - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
character (character) | character | player |
Stop following
The camera stops following whoever it followed and stays where it is.
- Type:
cam.stopFollow - Outputs: continue
TIP
To anchor it again use «Camera follows character» or «Normal camera».
Zoom
Zooms the camera in or out to the zoom you give (1 = normal, 2 = twice as close) over the time you want.
- Type:
cam.zoom - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
zoom (zoom) | number | 1.5 | 1 = normal, 2 = twice as close, 0.5 to 4 × |
seconds (seconds) | number | 1 | 0 = instantly |
curve (ease) | choice | smooth | |
wait (wait) | yes/no | and wait until it ends |
TIP
0 seconds makes an instant change. The zoom goes back to 1 when the scene changes.
Normal camera
The camera follows the protagonist again and without zoom, with a transition.
- Type:
cam.reset - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
seconds (seconds) | number | 1 | 0 = instantly |
wait (wait) | yes/no | and wait until it ends |
Shake camera
Shakes the camera for a few seconds (hits, explosions, roars).
- Type:
cam.shake - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
seconds (seconds) | number | 0.5 | |
strength (power) | number | 1 | 1 = normal, 0.1 to 5 × |
wait (wait) | yes/no | and wait | |
vibrates (haptic) | choice | auto | on a phone, Android. «The game setting»: what Settings → Mouse and keyboard → Vibration says, optional |
Fade
Fade to or from black.
- Type:
cam.fade - Outputs: continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
type (mode) | fade | out | |
seconds (seconds) | number | 1 | |
wait (wait) | yes/no | and wait |
TIP
To keep the black on screen longer, do not chain several fades: use “Wait”. If the screen is already black, a scene change does not lighten it by itself: it stays dark until the “Fade from black”.
Flow
5 blocks.
Several things at once
Splits the script into several branches that run at once: the first advances to its first wait, then the second, and so on. When all finish, the script continues through «When all are done».
- Type:
flow.parallel - Outputs: No · No · No · No · No · No · continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
branches (branches) | number | 2 | 2 to 6, 2 to 6 |
TIP
Fade out while the character keeps walking, without cutting its animation: one branch with «Walk to» and another with the fade.
Repeat several times
Repeats what hangs from “Repeat” N times. When done, the script continues through “When done”. With 0 times it does not enter the body.
- Type:
flow.repeat - Outputs: No · continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
times (times) | number | 3 | empty: 0 |
TIP
Knock on the door 3 times: “Repeat 3 times” with “play sound” and “wait 0.5 seconds” inside. Always put something that waits in the body.
Repeat while true
Repeats what hangs from “Repeat” while the formula holds; it checks it before each turn. When it stops holding, the script continues through “When done”.
- Type:
flow.while - Outputs: No · continue
| Parameter | Type | Default | Notes |
|---|---|---|---|
condition (formula) | formula | — |
TIP
Watch something until it happens: “Repeat while not door_open” with a “wait 0.2 seconds” inside. With no waits, the loop stops by itself after a few thousand steps.
Exit the loop
Cuts the loop it is in and the script continues through that loop’s “When done”. It only makes sense inside a “Repeat”.
- Type:
flow.break - Outputs: none
TIP
Inside “Repeat 10 times”, a condition “if carrying the key” with “Exit the loop” on its true branch.
Only the first time
- Type:
flow.once - Outputs: The first time · Every other time