# reference
Command reference
These are the commands you can write on lines that start with @ in a scenario. How to write labels, conditional branches and variables is in Writing scenarios.
No commands match “”.
You can search by command name (bg), words in the description (background, shake) or TyranoScript tag name (playbgm). To search every page, use site search.
Text and the message window
16 commands
@windowShow or hide the message window@nvlSwitch to NVL mode, which shows text over the whole screen, or back to the message window (switching clears the text). style= uses a look from ui.nvlStyles in liminalia.json@verticalSwitch the text to vertical writing (lines run from right to left) or back to horizontal (switching clears the text). Applies to the message window and NVL mode. The default is ui.message.vertical in liminalia.json@balloonSwitch to speech balloons (text shown above the speaking character's sprite) or back to the message window. A line whose speaker has no sprite on screen goes in a balloon at x and y if given, or in the message window otherwise@clearClear the text in the message window (in NVL mode, clears all the text shown)@text-speedChange the text speed@text-speed-resetReset the text speed to the value in Settings@text-soundPlay a sound as text characters appear (can differ per speaker)@text-sound-offStop the sound played as text appears@wait-clickWait for a click without showing text@layer-textPlace text on a foreground layer (a chapter title, a location caption and so on). It stays until @free-image removes it@motion-textShow text one character at a time with an animation, keep it shown for a while, then remove it one character at a time@chat-openOpen a messaging-app style screen (add bubbles with @chat and close it with @chat-close). In projects with ui.chat.dialogue, it fills the stage and regular dialogue is added to the same thread@chatAdd a bubble to the chat and wait for a click (also recorded in the log)@chat-closeClose the messaging-app style screen@backlog-addAdd text to the log
Backgrounds and images
10 commands
@bgChange the background@imagePlace an image on a foreground layer (an illustration and so on). It stays until @free-image removes it@free-imageRemove everything placed on a layer (only the image with that name if name is given). base removes the background@layerChange the visibility, opacity and position of a foreground layer. Use @window to show or hide the message window@bg-placeChange the background with a given position and size (for example, a background larger than the screen that @anim moves later)@planeLayer a background image with depth (distant sky, mountains, grass in front and so on). When @camera moves, farther planes move less. The same name replaces the old plane, and @bg removes them@plane-hideRemove a plane layered with @plane@bg-moviePlay a video as the background (above the background image and below the sprites). If another one is given during playback, it switches after the current video ends@stop-bg-movieRemove the @bg-movie video@wait-bg-movieStop the @bg-movie video from looping and wait until it plays to the end
Sprites and faces
8 commands
@charaShow a sprite or change it. A character already on screen keeps its current variant, sprite set, position and flip for anything you leave out (a hidden character uses the defaults)@chara-hideHide a sprite@chara-hide-allHide all sprites@chara-configConfigure how sprites behave (highlighting the character who is speaking and how fast auto positions rearrange). Changes only what you write@chara-moveChange the position and size of a sprite on screen (until the next @chara)@chara-shakeShake a sprite (the character shake of TyranoBuilder). Doesn't wait for it to finish@faceSet the expression in the face window (for a character whose sprite isn't shown; while the sprite is shown, its variant is used). When the sprite is hidden, the face window keeps the variant it had@toneChange the color tone of sprites (to match the time of day or a flashback). Without a character it applies to all sprites, including ones shown later. It wins over the background's tone (tone= of @bg). none resets it (back to the background's tone, if it has one)
Effects
32 commands
@maskCover the screen with a solid color (fade out)@mask-offRemove the screen cover (fade in)@quakeShake the screen@quake-decayShake the whole screen, including the message window, with a shake that gradually dies down@cameraZoom, move or rotate the whole screen@reset-cameraReset the camera@layer-cameraZoom, move or rotate a single layer (use @camera for the whole screen)@reset-layer-cameraReset a layer moved by @layer-camera@wait-cameraWait until the @camera and @layer-camera motions finish@transitionSwitch from the screen frozen by @freeze to the rearranged screen@wait-transitionWait until the @transition finishes@effectApply a screen effect (wave, glitch, chromatic aberration, noise, vignette, scanlines, radial-blur, zoom-blur, mosaic, ripple, or shader for the project's own shader). Remove it with @effect-off@effect-offRemove a screen effect applied with @effect@filterApply a CSS filter to a layer (replacing the previous filter). It stays until @filter-off clears it@filter-offClear a filter applied with @filter@blendOverlay a color or an image on the whole screen with a blend mode (below the message window). It stays until @blend-off removes it@blend-offRemove what @blend overlaid. Removes all of them if name is omitted@blend-movieOverlay a video on the whole screen with a blend mode (below the message window). @blend-off removes it@dofDepth of field. Choose what is in focus and blur the rest (focusing on the background blurs the sprites and foreground images; focusing on the sprites blurs the background and foreground images). none turns it off@particlesMake rain, snow, cherry blossoms, sparkles or dust fall (images can fall too). Stop it with @particles-off@particles-offStop particles@animAnimate the position, size, opacity and text color of something chosen by name or layer. @wait-anim can wait for it to finish@stop-animStop an @anim animation where it is (it stays at the position where it stopped)@wait-animWait until every animation from @anim, @kanim (except loops) and @quake-decay finishes@keyframeDefine a named animation for @kanim. List the keyframes on one line as "percent% property=value …", separated by ;@kanimAnimate something chosen by name or layer with an animation defined by @keyframe (transforms and CSS properties)@stop-kanimStop a @kanim animation. If it's midway, jump to its final state@freezeFreeze the current screen (background, sprites and foreground) on display so you can rearrange things underneath. Switch with @transition@vibrateVibrate the device (the phone apps and browsers that support the Vibration API; the iOS app uses haptics. A connected gamepad vibrates too. Does nothing otherwise). Doesn't wait for it to finish@vibrate-stopStop the device vibration@moviePlay a video full screen and wait until it ends@peekHide the message window for a moment and bring it back on click (the text isn't cleared)
Sound and voice
17 commands
@bgmPlay BGM@stop-bgmStop the BGM@pause-bgmPause the BGM@resume-bgmResume paused BGM@bgm-volumeChange the volume of the BGM that is playing@wait-bgmWait until the BGM finishes (looping BGM isn't waited for)@sePlay a sound effect@stop-seStop sound effects@pause-sePause sound effects@resume-seResume paused sound effects@se-volumeChange the volume of sound effects that are playing@wait-seWait until sound effects finish (looping sound effects aren't waited for)@voicePlay a voice for a line (before a text line it plays with the next line; inside the text it plays at that point)@voice-autoAutomatically play numbered voice files for each of a speaker's lines (a line with @voice uses that instead). With pattern it sets this up; without it, it resumes what @voice-auto-off stopped, keeping the numbers (all speakers if who is also omitted)@voice-auto-offStop automatic playback of numbered voices (the number is kept, so @voice-auto can resume it)@stop-voiceStop the voice that is playing@wait-voiceWait until the voice finishes
Flow and timing
10 commands
@waitWait for the given time@stopStop in a state where clicking doesn't advance (to wait for buttons or outside input)@sleep-gameSave the current state and go to another scene (@awake-game returns to the command after this one)@awake-gameReturn to the state saved by @sleep-game (does nothing if no state was saved)@break-gameDiscard the state saved by @sleep-game@checkpointSave the current state under a name (@rollback can return here)@rollbackReturn to a state saved by @checkpoint@clear-checkpointDiscard states saved by @checkpoint@clear-stackDiscard all @call return points (for example, when returning to the title from inside a subroutine)@clear-varsDelete variables in bulk
Input and items
5 commands
@text-inputLet the player type text and store it in a variable (waits until they confirm)@dialogShow a confirmation dialog and wait for an answer@item-addAdd an item (a name from items in liminalia.json). In expressions, item("name") reads the count@item-removeRemove items (all of them if count is omitted)@item-selectOpen the items screen, let the player pick one, and store its name in a variable (an empty string if they cancel). Useful for choosing an item to use on an investigation spot
System screens
15 commands
@autoStart or stop auto mode (advances the text automatically)@skipStart or stop skipping@open-screenOpen a system screen or a project screen and wait until it closes@menu-buttonShow or hide the button that opens the menu@shortcutsTurn keyboard and mouse shortcuts (save, skip, menu and so on) on or off@configChange values in Settings (only the ones you write)@fullscreenToggle between full screen and windowed@quitQuit the game (the iOS app and browsers, which the game can't close, say so and return to the title screen)@title-screenEnd the playthrough and return to the title screen (after a bad end and so on). With the kind of ending in ending, the screen fades to black and shows the kind's wording (BAD END and so on) with the name in title, then returns to the title when the player presses (the Studio flowchart also shows it as an ending)@window-titleChange the window (tab) title@open-urlOpen a URL in the browser (the phone apps open it in the device's browser; http, https and mailto only)@autosaveAutosave (resumes from the next command; goes on the autosave page of the Load screen, replacing the oldest)@autoloadLoad the newest autosave and continue from there (does nothing if there is none)@backlogTurn recording of text in the log on or off@presenceShow what the player is doing in Steam Rich Presence (in the desktop version, when connected to Steam). An empty string clears it
Extras and achievements
5 commands
@cg-unlockUnlock a CG (makes it viewable in the CG gallery of Extras without showing it)@replay-unlockUnlock a replay (makes it viewable in the replays of Extras without playing it)@replay-endEnd replay playback here and return to Extras (does nothing outside a replay)@glossary-unlockUnlock a glossary term (terms that appear in the text unlock automatically)@achieveUnlock an achievement (a notice appears only the first time). The desktop version also sends it to Steam, and the mobile version to Game Center and Google Play Games
Distribution and purchases
3 commands
@check-updateCheck for an update and, if there is one, ask the player and install it (in the desktop version when build.update is in liminalia.json; does nothing elsewhere)@purchaseBuy a product (in-app purchases in the mobile version, store DLC in the desktop version and so on). Waits until the store screen closes; after a purchase, system.purchases.<product> becomes true@restore-purchasesRestore purchases (after changing devices and so on). system.purchases.<product> becomes true for products the player owns
Other
33 commands
@face-offHide the face window (when show of ui.face is explicit; it stays hidden until @face shows it)@scene-changeChange scenes: fade out, hide all sprites, change the background, then fade back in (@mask, @chara-hide-all, @bg and @mask-off in one command). It can also stop or change the BGM while the screen is covered@window-imageChange the message window's background image (omit the image to go back to ui.message.image)@nameChange the name shown in the name box (the display name) for a speaker until @name-off. The character itself (lip sync, dimming of characters who aren't speaking, balloons, voice and name color) stays the speaker. For a single line, write {name Display name} right after the speaker on that line@name-offChange a display name set with @name back to the speaker's name@describeText only for reading aloud (not shown on screen; passed to screen readers and text-to-speech with the next text. Use it to describe pictures and effects)@voice-filterKeep a sound filter on voices (over the phone, radio, muffled, hall reverb). who sets it per speaker, and none removes it. It also applies right away to voices that are playing@achieve-progressAdvance a counting achievement (goal in extra.achievements of liminalia.json). Reaching the goal unlocks it (with a notice, like @achieve). The desktop and mobile versions also send the progress to the store@htmlPlace HTML without JavaScript (cards, tables, buttons that jump and so on) on a foreground layer. Write the HTML between the @html line and the @end line. It stays until @html-hide removes it@html-hideRemove HTML placed by @html (everything @html placed if the name is omitted)@staff-rollShow a staff roll (text scrolling from bottom to top) and wait until it finishes. Write the content between the @staff-roll line and the @end line, or point file= to a JSON file in data@notifyShow a notification (stacked at the top right; identical text is merged into one, and it's held back during full-screen effects). Doesn't wait. With when=scene-break, it waits for the next scene break@flipbookPlay numbered images frame by frame (slashes, explosions, light streaks and so on). Set the time per frame with time, durations or data. It disappears when it finishes@flipbook-offStop a flipbook repeating with @flipbook loop=0 (all of them if the name is omitted)@flashInsert flash frames (a brief white, black or colored frame, or inverted screen colors). When "Flashing lights" is set to "Reduced", it shows a faint veil once instead of flashing@blinkBlink of the eyelids (they close from top and bottom, stay closed briefly, then open). For waking up, passing out and so on@cutinSlide in a framed image, hold it for a while, then pull it out (a clue, an item, a close-up of a face and so on). With stay=true it stays until @cutin-hide and is kept in saves@cutin-hidePull out a cut-in kept with @cutin stay=true (all of them if the name is omitted)@investigateInvestigation. Let the player pick spots on the background and call each spot's scene (the scene returns at the next label without @return). After the required spots are investigated, go to done. Views can have face tabs and a scene for the first entry, spots can have a revisit scene (temp.first_visit), and the investigation can end before everything is examined. Spots are in data/investigation.json@investigate-resetClear the investigated marks and entered views of an investigation (to investigate it again from the start). The completion flag isn't cleared@map-choiceLet the player pick a destination on a map. Pressing a spot shows its name, picture and description in a panel, and Choose this picks it. The picked spot's id goes into the result variable, and play jumps to the spot's target (or goes on to the next line). Maps are in maps of data/investigation.json@codex-unlockUnlock a codex entry (or one of its sections). Not needed for entries that unlock through a condition (if)@codexOpen the codex screen and wait until it closes. With an entry name, it opens to that entry@hud-buttonPlace a button that stays on screen while playing. Pressing it calls the call= scene, and when the scene returns, the page being read (or the choices being shown) is shown again. It stays until @hud-button-off and is kept in saves@hud-button-offRemove a button placed with @hud-button (all of them if the name is omitted)@hud-textPlace text that stays on screen while playing. {= expression} fills in variable values, and it's redrawn whenever a variable changes (the date, the place, affection and so on). It stays until @hud-text-off and is kept in saves@hud-text-offRemove text placed with @hud-text (all of it if the name is omitted)@chapter-cardChapter title card (shows the number, title and subtitle across the screen, holds them, then fades out). Anything omitted comes from the current chapter (chapters in liminalia.json). With leave=mask the screen stays covered@chapter-endEnd of a chapter (shows the chapter's number and title with an end mark, then fades to black). Anything omitted comes from the current chapter. By default the screen stays covered and opens at the next @mask-off@emoteAttach a manga symbol to a sprite (sweat, anger, surprise, question, heart, sparkle, music note, or the project's image). It moves with the sprite, stays when the expression changes, and goes away when the sprite is hidden. With time=, it shows for that long and disappears@emote-offRemove a symbol attached with @emote (from every sprite if the character is omitted)@speedlinesShow focus lines (lines converging on a center) or speed lines (lines flowing one way) for a moment. For momentum, surprise, running and closing in@burstPop up a jagged impact burst (the shape of an explosion balloon) and fade it out. text= can add a sound effect (BAM, BOOM)
Choices
1 command