Skip to content

Import and export as text ​

Almost everything an AI can write for you can be exported and imported as text from its own section, with the ⇅ Import / Export button:

SectionFormatWhere the button is
Logic (scripts)Human viewThe script's bar and next to “+ New script”.
DialoguePlay scriptThe header of the conversation and of the list.
InventoryJSON or CSVThe header of the list.
VariablesJSON or CSVThe Variables box in Logic.
Journal (objectives and documents)JSONThe header of each block.
Particle EffectsJSONThe header of the list.
Texts (translations)CSVTexts section.

How it works ​

Modal dialog to import and export as text

  • Export: choose what to export (this element, those in the scene or all of them) and press Copy, Download .txt or Copy as AI prompt. The latter copies the format instructions (for JSON and CSV, what each field is and which values it accepts), the names that exist in your project (scenes, items, characters, variables…) and the current content, ready to paste into an AI.
  • Import: paste the text (or open a .txt). On the right you will see live what is going to be created and the errors by line (also marked in red in the margin). Press Import; if there are errors, Import what is understood skips the problematic lines.
  • By default, scripts or conversations with the same name are replaced (their links are kept). Turn it off to create copies.
  • Everything can be undone with Ctrl+Z.

Scripts in human view ​

It is exactly what you see in the editor's human view. To write a single script there's no need to import: use the script's own Text tab.

text
=== Open the door (Garage exterior)
On using the rusty Key with the Garage Door:
    If the Garage Door is in the state closed:
        Set the Garage Door to the state open with the sound (no sound).
        The player says: “Finally!”.
    Otherwise:
        The player says: “It's already open.”.
  • === Name (Scene) starts a script; (Global) if it belongs to no scene. Without a scene, it is created in the open script's scene.
  • The first line is the event and ends in :.
  • Each step is indented 4 spaces; conditions end in : and their content goes one level further in. Otherwise: opens the “no” branch.
  • Names are written as in the editor (“the rusty Key”, “Gus the bartender”). Lines in quotes become translatable texts.
  • Each step takes a single line: inside a text, a line break is written \n and a backslash \\ (The player says: “First line\nSecond”.). On import they become a line break and a backslash again. A backslash followed by any other letter is left as it is.
  • The valid sentences are those in the block reference.
  • Lines starting with // are author notes: they go with the step right below them (or with the script, if they come before the event) and are kept when importing and exporting. See notes in the logic.

Conversations as a play script ​

text
# Chat with Gus
@scene: The One-Eyed Parrot tavern

== Greeting
Gus the bartender: Welcome to the One-Eyed Parrot!
-> Order

== Order
* [if has the piece of eight] A grog, please. -> Grog
* [once] Is that parrot yours? -> The parrot
* Nothing, thanks. -> END

== Grog
Gus the bartender: Coming right up.
-> END

== The parrot
Gus the bartender: Don't look him in the eye.
-> Order
LineMeaning
# NameNew conversation.
@scene: NameScene it belongs to (Global if none).
== NodeNew node; the first one is the start node.
Speaker: lineA line. Speakers: Player, Narrator or the name of a character.
* text -> NodePlayer option. -> END ends the conversation.
-> NodeNext node (if the node has no options).
// commentIgnored.

In lines, options and the text values of [if …] and [set …], a line break is written \n and a backslash \\, as in scripts: Gus the bartender: Hello!\nWhat can I get you?.

Option tags: [once] · [if has X] · [if not has X] · [if variable == value] · [set variable = value] · [script Script name] · [says: phrase] (what is said out loud, if it is not the option text) · [on timeout] (the one chosen by itself). On the node, [time 8 -> Node] gives time to answer.

If the editor is in another language, the tags are written in that language; when importing both are understood. See Editor language.

JSON ​

Inventory, variables, objectives, documents and effects use a JSON list with the same shape as the export. Elements with an existing id are updated; the rest are created. Texts (names, descriptions, pages) can go as they are: they become translatable texts.

Spreadsheet (CSV) ​

The inventory and variables can also be exported and imported as a spreadsheet: choose Spreadsheet (CSV) in the import/export window. Open it in Excel, LibreOffice or Google Sheets, edit it (add rows, change initial values) and paste or open it again. It works separated by commas or semicolons; yes/no is written “yes” or “no”.

  • Inventory: id, name, description, color, startsInInventory, stackable, startCount.
  • Variables: id, name, type (boolean, number or string) and initial.

Rows with an existing id are updated and those without one are created. Texts go in the editor's active language.