LiminaliaLiminalia
Studio guide chapters: 3. Files and scenes

Files and scenes

Open in Claude (new tab)
On this page

The scene list

The panel on the left of the “Script” screen lists your script files. Click the › to the left of a file name to list the scenes (labels) in that file, each with the background and character faces at that point and its first line of text. Click a scene to go to that line.

The scene list, with bookmarks at the top, the after/ folder heading and the scenes of start.lim expanded. File tabs above the script.
  • Switch the order with “By name” and “Story order” at the top. Story order follows the jump targets from where “New Game” starts and lists files in the order they are first reached.
  • Files in subfolders, such as part1/chapter2, are grouped under a folder heading when sorted by name. Click the heading to collapse or expand the folder.
  • The + to the right of a file name adds a scene at the end of that file.
  • “New file” at the very bottom creates a script file. Put / in the name to place it in a folder.

Click the ”…” on a file name, or right-click it, to see the file commands.

ItemWhat it does
Add a sceneAdds a scene at the end of the file
DuplicateDuplicates the file
RenameRenames the file. Jump targets in other files, bookmarks and comments are updated to the new name
Move to trashMoves the file to the trash. Get it back with “Undo” in the notice or from the “Trash” screen
Open to the sideOpens the file next to the script

File tabs

When you open two or more script files, tabs for them appear above the script heading. Click a tab to go to that file, and close it with ×. Right-click a tab for “Close tab,” “Close other tabs” and “Open to the side.”

Split view

Right-click a file tab, or a file in the scene list, and choose “Open to the side” to open another file in the code view to the right of the script. You can edit the file on the right too, and it is saved automatically. “Swap with the main editor” in the panel heading swaps the left and right files.

Split view. start.lim in the block view on the left, after/epilogue.lim in the code view on the right.

Bookmarks

Press ⌘⌥K to add or remove a bookmark on the cursor line. In the block view, you can also add one with “Bookmark” in the right-click menu of a line.

  • Bookmarked lines have a mark on their left.
  • A “Bookmarks” list appears at the top of the scene list. Click one to go to that line, or right-click it to remove it.
  • F2 and ⇧F2 go to the next and previous bookmark in the open file.
  • Bookmarks also appear in the ⌘K list.

Bookmarks are used only inside Studio and aren’t included in the game.

Go to the jump target

From an @jump, @call or choice line, you can open the scene it jumps to.

  • In the block view, click ”→ #label” on a choice, ⌘-click the line, or choose “Go to Jump Target” in the line’s right-click menu.
  • In the code view, hold ⌘ and hover over a jump target to underline it, then click to go to that scene.
  • F12 goes to the jump target of the cursor line.

If the jump target is in another file, that file opens. Press ⌘[ to go back to where you were.

On a line that calls a macro (@define), F12 or ⌘-click also goes to the macro’s @define line. Press F12 on an @define line, or ⇧F12 on the cursor line (in the block view, “Lines using this macro” in the line’s right-click menu), to list the lines that use the macro. Click one to go to that line.

Lines leading to this scene

Right-click a scene in the scene list, a scene heading in the block view, or a card in the flowchart, and choose “Lines Leading Here” to list the lines that lead to that scene. Each line shows how it leads there (a jump, a call, a choice, or continuing from the previous scene), with the file name and line number. Click one to go to that line.

The menu for a right-clicked scene heading.

Scene commands

Click the ”…” or right-click a scene in the scene list, a scene heading in the block view, or a card in the flowchart, and the same commands appear.

ItemWhat it does
Play from HereStarts a test play from the beginning of the scene
Lines Leading HereLists the lines that lead to the scene
Copy scene textCopies only the dialogue, narration and choices to the clipboard, in a form that is easy to proofread
Edit tags and statusGives the scene a status (Draft, Needs review, Reviewed), a color and tags
Rename sceneRenames the scene and updates every jump target that points to it
Duplicate scenePuts a copy of the scene at the end of the file
Move to another fileMoves the scene to the end of another file. If the name doesn’t exist, a new file is created
Split the file from hereMoves everything from the scene to the end of the file into a new file
Delete sceneDeletes the lines of the scene. Get them back with ⌘Z or “Undo” in the notice

When you move a scene to another file, jump targets that point to it are updated to the new file. The @jump and @stop lines needed to keep the story flowing the same way are added too. Places that couldn’t be updated automatically are listed.

Tags and status

The status, color and tags set with “Edit tags and status” show as a dot before the scene name in the scene list, and as a dot and labels on the picture of the card in the flowchart. The menus at the top of the scene list and the flowchart filter scenes by status, color or tag. ⌘K also finds scenes by status name or #tag.

Tags and status are used only inside Studio and aren’t included in the game. They stay with the scene when you rename the scene or its file.

Find and replace in the open file

Press ⌘F in the block view to show a find field at the top right. It searches the open file, including lines that aren’t drawn yet, and shows how many matches there are. Press Enter for the next match and Shift+Enter for the previous one. Click “Replace” to show the replace field, then replace one match at a time or click “Replace all” (⌘Z undoes it in one step). In the code view, ⌘F opens the editor’s search.

Search and replace across files

Press ⌘⇧F to show a search field at the top of the scene list. It searches every script, including files in subfolders.

ButtonHow it searches
TextSearches only dialogue and narration
あアTreats hiragana and katakana (the two Japanese kana scripts) as the same
AaMatches case
.*Searches with a regular expression

The menus below narrow where to search (all files, the open file, or a folder) and by speaker (only that character’s dialogue). While results are shown, the scene list gets wider.

Click “Replace” to the right of the search field to open replace in all files. Matching lines are listed with a preview of the result, so clear the checkboxes for files and lines you don’t want to change, then click “Replace.” You can undo changes to the open file with ⌘Z. For other files, the content before replacing is kept in the change history.