@chara
Show 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)
- Built-in
- Can be written without the name
who variant
variantVariant
atPosition
enter
flip
Parameters
whoRequiredCharacter
Character ID
variantVariant
Variant (expression or pose). If omitted, a character on screen keeps its current variant and a hidden one uses the base variant (normal, then default, then the first one)
appearanceSprite set
Sprite set (outfit, era, condition and so on). If omitted, a character on screen keeps its current set and a hidden one uses the default sprite set (defaultAppearance, then default, then the first one)
atPosition
Position: a name from the variant's frame positions (unknown names fall back to center) or auto (auto sprites line up evenly side by side). If at, x and y are all omitted, a character on screen stays where it is and a hidden one appears at center
xNumber
Left edge (px). Overrides at
yNumber
Top edge (px). Overrides at
widthNumber
Width (px). If omitted, a character on screen keeps its current size and a hidden one uses the variant's size
heightNumber
Height (px). If omitted, a character on screen keeps its current size and a hidden one uses the variant's size
fliptrue / false
Flip horizontally. If omitted, a character on screen keeps its current flip and a hidden one isn't flipped
crosstrue / false
Default: trueWhen the image changes, cross-fade the old and new images (false shows the new image fully before removing the old one)
timeTime (300ms, 1.5s)
Default: 0msTime to show or change the sprite
waittrue / false
Default: falseWait until the sprite is shown or changed before continuing
if-hiddentrue / false
Default: falseShow the sprite only if it's hidden (does nothing when it's already on screen)
enterfade / left / right / top / bottom / zoom
Default: fadeHow a hidden character appears, over the time: fade appears in place, left, right, top and bottom slide in from that side (by distance), and zoom grows from a small size
distanceNumber (0 or more)
Default: 160Distance moved for left, right, top and bottom (px)
slidetrue / false
Default: falseWhen a character on screen changes position, slide it to the new position over the time instead of hiding and showing it again
zInteger
Stacking order. Higher values are in front (with equal values, the later sprite is in front). If omitted, a character on screen keeps its order and a hidden one uses 0
solotrue / false
Default: falseHide the other characters' sprites first (swapping over the time). For projects that show one character at a time, set it in commandDefaults for chara
replaceText (such as left / center / right)
The character to replace: the name of a character on screen, or the name of their position. Position names are left, center, right, a name in the sprite frame's positions, a name written in autoLayout's positions, or the name after autoLayout's byCount remaps it (choose a character placed with x or y by name). left, center, right and the names in autoLayout's positions are read as positions even when a character has the same name. The new character inherits that position and order of appearance, and the other sprites remain in place
auto-layouttrue / false
Default: falseAutomatically place newly shown characters without explicit positions from left to right in entrance order. When the cast changes, fade the sprites out and show them again in their new positions. Set it in commandDefaults for the whole project. Change the layout with autoLayout in liminalia.json and side in cast.json
auto-fadeTime (300ms, 1.5s)
Default: 300msTime to fade existing sprites out before automatically rearranging them. time controls the new entrance
clearTime (300ms, 1.5s)
Hide all sprites, including this character, over this duration before showing them. Equivalent to @chara-hide-all time=… followed by @chara; time controls the entrance duration
swapafter / cross
Default: afterHow to show the sprite while another character's sprite is still disappearing at the destination position: after waits until it has gone (the two don't overlap; a character already on screen that moves there also appears there only once it has gone), cross overlaps them (the previous behavior). To change it for the whole project, set it in commandDefaults for chara
altText
Description of the picture (not shown on screen; passed to screen readers and text-to-speech with the next text)
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
- Add expressions and switch between themAdd variants to a character, and change only the expression while the sprite stays on screen
- Show two characters talking side by sidePlace sprites on the left and right, and dim the one who isn't speaking
- How sprites enter, leave and overlapSlide a sprite in from the side, slide it to a new position, put it in front, and show one character at a time
- Set command defaults for each projectMake values you enter every time, such as the fade of sprites or the length of scene changes, the project's defaults
- Adjust sprite position and sizeAdjust positions and size in Position on the Characters screen, and place a sprite by coordinates in a single scene
- Move and shake spritesSlide a sprite on screen to the side, shake it when the character is startled, and have it exit
- Match sprite tone to the sceneChange the color and brightness of sprites to match a night or evening background
- Add sweat drops and anger marks to spritesShow symbols such as sweat, anger, surprise and question marks above or beside a character's head, moving with the sprite
- 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
- Reuse scenes and effectsReuse scenes with calls, bundle effects into macros, and turn them into favorite parts
- 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
- Choose where choices appearShow text choices in the middle of the screen, at the top, just above the message window, or away from characters' faces
- Make extras (CG, replays, music room)Make the lists of extras on the Project screen, and unlock CGs and replays in the scenario
- 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.