Skip to main content

Word Processor

Google Docs​

The following setup in Google Docs is then downloaded via File > Web Page then extracted and put into parser/input/en/.

Scripting

Currently, we use Deno for running the parser.

cd parser
deno parser.ts

Running parser.ts with --assetpack runs assetpacking from assets into the client after the parsing the scripts.

deno parser.ts --assetpack

Result​

The result is the following put as a .txt file of the same name in parser/output/en/ and copied to assets/assets/Scripts{m}/en/.

Each line corresponds a linear value. If this scene was chapter 1 scene 1 then the code would go from 1.1.0 -> 1.1.12. A depth value is assigned to lines with a depth of >0, for example 1.1.3 would have a depth of 1 and 1.1.4 have a value of 2.

background black
show ui
Nao: Hello!
* choice Hello
** Nao: Hi!
* choice How's your day?
** Nao: Good!
** Nao: How are you?
* onclick Nao
** Nao: Huh?
*** onclick Nao
**** Nao: Why'd you click me again?