Skip to content

GalMaker/NovelDoc

Repository files navigation

PyNovelDoc

Gal, Novel DSL Impl.

Syntax

  • Say
  • Let Flag
  • Choice
  • Global Novel
  • Create A Sub Novel
  • Comments
  • Command
  • Inject Code
  • Camera Move
  • Model Action
  • Chapter

Say

Say 「 Hello World 」
lfkdsk [ status ] Say 「 Hello World 」

example:

lfkdsk [Angry] Say 「 I'm Angry 」# change status pic with status.

Let Flag

SET VAR_NAME = VALUE

Command

> COMMAND ARGS

example:

> Music 异邦人
> Background 体育仓库

Inject Code


--- [Python or Other Script Type]
# Write Python Code.
---

Choice (Jump)

Choice Jump Novel.

- [Choice 1] to Novel 1
- [Choice 2] to Novel 2
- [Choice 3] to Novel 3

Choice change flag.

- [Choice 1] to lambda 1
- [Choice 2] to lambda 2
- [Choice 3] to lambda 3

Camera Move

# bind camera
+ { A : [ x, y, scale ] , B : [x, y, scale]}
# unbind camera
- [A , B]

Chapter

=== Chapter 1 ===

show empty with text chapter x

Model Action

[A] -> Action

example:

[someone] -> reset dresses

Comments

# its a comment

may show this in debugger mode or toolkit window.

Create A Novel

Start <Novel Name>
# other stmts. 
End <Novel>

Global Novel

NOVEL_START
# Novel Script
NOVEL_END