// Comment

Annotation statement

Comment lines are ignored by the Lexer and discarded on parsing time. They are useful for adding comments, notes, and general reminders directly to your script.

  • A comment statement starts with a // (Double Dash), immediately followed by a whitespace.


Inline Comment

An inline comment is a comment within another statement line. It is set the same way as a line comment. Be aware that anything after an inline comment opening, is ignored by the parser.


Header Comment

If a free text line is set before any other statement in script, these lines are called header comments and differ from usual comments because they don't have a comment marker. They are also ignored and discarded by the parser.


Section

Sections are organizational brackets with no impact on how your script runs. Their goal is to help writers better organize sections of the story without the need for any workarounds.

They also allow you to use the folding feature in most editors, like Visual Studio Code.

You start a section with a line containing a single { (Open Bracket) and end it with another line containing a single } (Close Bracket).

{
  - Bob
    Hi, Alice! How are you?

  - Alice
    Hi, Bob! I'm fine.
    Thank you!
}

Last updated