@choice
Choices. List the choice lines and close with @end. A choice line (- text -> #target) can have a condition for showing it, a condition that disables it, images, a position and more
- Built-in
@choice- Look at the door -> #door if=(game.has_key)- Look out the window -> #window@endParameters of a choice line
lockedCondition expression
When true, show the choice disabled (shows a choice whose condition isn't met instead of hiding it)
ifCondition expression
Condition for showing it. When false, this choice isn't shown (if every choice is false, play stops without showing any)
calltrue / false
Call the jump target (@call), and when it hits @return, come back and show these choices again (for toggle buttons and so on)
imageAsset (image)
Button image
hoverAsset (image)
Image on mouseover
xNumber
Horizontal position of the top-left corner (px)
yNumber
Vertical position of the top-left corner (px)
widthNumber (0 or more)
Width (px). For an image, its size if omitted
heightNumber (0 or more)
Height (px)
cursorAsset (image)
Mouse cursor image on hover (such as a magnifying glass on an investigation spot; the hotspot is the image's center)
tipText
Short tooltip on hover (such as the name of an investigation spot)
Guides that use this command
- Continue without waiting for a clickMove on to choices or effects with the line still on screen, so the player can read the question while choosing
- Show dialogue as chat bubblesIn a portrait game, show dialogue as speech bubbles and narration as a small line in the center, stacked to fill the screen
- Show or lock choices with conditionsDepending on a variable's value, hide a choice or show it in a state that can't be clicked
- Choices with a time limitIf the player doesn't choose in time, a choice you decided in advance is picked
- Change the ending with flagsRecord what the player chose in a variable, and change the ending text with a condition
- Make choices with image buttonsUse images instead of text buttons for choices, and decide where to place them
- 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
- Give items and branch on whether the player has themAdd and remove items such as keys and letters, change the text or choices depending on whether the player has them, and show the items screen
- 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
- Find gaps with the all-routes testTry every choice automatically to find unreached lines and errors, and find the choices that reach a line with lim reach
- 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 syntax:
How each attribute converts, and what isn't converted, is in TyranoScript import.