@bg
Change the background
- Built-in
- Waits until it finishes
- Can be written without the name
image
pattern
hide-window
When played, the sample game uses its own assets and character names.
Parameters
imageAsset (bgimage)
Background image (write color instead for a solid color)
colorColor (#rrggbb)
Solid background color (written instead of image; no picture is needed, and saves keep it as a color)
timeTime (300ms, 1.5s)
Default: 0msTransition time
methodcrossfade / fadeIn / fadeInLeft / fadeInRight / fadeInUp / fadeInDown / slideInLeft / slideInRight / slideInUp / slideInDown / puffIn / vanishIn
Default: crossfadeTransition style
crosstrue / false
Default: falseCross-fade the old and new backgrounds
waittrue / false
Default: trueWait until the transition finishes before continuing
hide-windowtrue / false
Default: falsetrue hides the message window during the transition (while fading) and shows it again with the next text. If omitted, the window stays shown (also when swapping variants of a CG)
keep-texttrue / false
Default: falsetrue keeps the previous page's name and text until the next text when this line comes right after a page is advanced with a click (so the line stays visible while a CG variant changes). Text already cleared by an earlier line doesn't come back. ui.message.keepText in liminalia.json brings back the old behavior for the whole game
altText
Description of the picture (not shown on screen; passed to screen readers and text-to-speech with the next text)
toneText (such as sepia / mono / night / evening / dark / plain / none)
Tone applied to sprites while this background is shown (the same names as @tone; none applies no tone). If omitted, the tone from ui.backgroundTones in liminalia.json. Sprites given a tone with @tone keep that one
ruleAsset (image)
Rule image (grayscale; darker areas change first; overrides method)
patternwipe-left / wipe-right / wipe-up / wipe-down / circle-in / circle-out / blinds / blinds-vertical / diamond / noise
Built-in rule, used when rule isn't given (wipe-left, circle-out, blinds, noise and so on)
vagueInteger (0 to 255)
Default: 64Softness of the rule's edge (0 to 255; higher is softer)
skiptrue / false
Default: trueLets a click, the Enter key or a tap finish the effect at once. false prevents it (while skipping, it ends at once anyway)
Guides that use this command
- Match sprite tone to the sceneChange the color and brightness of sprites to match a night or evening background
- Change how backgrounds transitionChange backgrounds over time, and change how the change looks with motions and rule images
- Show images over the screenShow a photo or illustration over the background and remove it, and show a full-screen event CG
- Show a face windowShow the speaking character's face beside the message window, and choose the expression
- Fade out, fade in and flashCover the screen with a single color to change scenes, and cover it with white for an instant to make a flash
- Zoom in and out with the cameraZoom and move the whole screen with the Camera part, and move only the background
- Make snow or rain fallMake snow, rain or cherry blossoms fall with the "Rain, snow" part, and stop them
- Show chapter title cards and chapter endsWrite the chapters' numbers and titles together in liminalia.json, and show a title card at the start of a chapter and an "End" screen at its end
- Click waits, line breaks and text speedWait for a click partway through a line, break lines on the same page, and change how fast text appears
- Full-screen text (sound novel style) and vertical writingShow text paragraph after paragraph over the whole screen with NVL, and write it vertically
- Stop and switch BGMCross-fade from one BGM track to another, change the volume, and fade the BGM out to stop it
- Split the script into several filesMake a file for each chapter and connect them with jumps
- Run a single line on a conditionWrite if=(expression) at the end of a command line, and skip that line when the condition isn't met
- Make extras (CG, replays, music room)Make the lists of extras on the Project screen, and unlock CGs and replays in the scenario
- Show notifications at the edge of the screenShow notifications such as an entry added to a notebook or an item picked up, stacked at the top right, and hold them until a scene break
- Adjust the timing of effectsOn the timeline, drag to change how long backgrounds and sprites take to change
- Make your first commandCreate a new plugin, make one command that shows a caption on the screen, and use it in the script
- An example of building with AIA record of actually calling the MCP server's tools in order, from creating a project to adding a scene, running the syntax check, taking screenshots and checking how the scenes connect
From TyranoScript
When you import with lim import, these tags become this command:
How each attribute converts, and what isn't converted, is in TyranoScript import.