Monogatari Documentation
HomepageGitHubDiscordTwitter
v1.0.0
v1.0.0
  • Getting Started
  • Configuration
    • Internationalization
    • Saving
  • Design
    • CSS Classes
    • HTML Data Attributes
    • Icons
    • Image Menus
  • Port
    • Ren'py
  • Release
    • Chrome App
    • Desktop
    • Mobile
    • Web
  • Script
    • Audio
    • Characters
    • Choices
    • Images
    • JavaScript
    • Labels
    • Messages
    • Scenes
    • Split Files
    • Text
    • Video
Powered by GitBook
On this page

Was this helpful?

  1. Script

Choices

But what is a Visual Novel without choices right?

Choices are built as JSON, with the key "Choice", and every choice available as a sub-item.

Every choice has 2 attributes, the text to display and what to do when it's clicked.

{"Choice":{
    "Developer":{
        "Text": "I'm a developer.",
        "Do": "jump Developer"
    },
    "Writer":{
        "Text": "I'm a writer.",
        "Do": "jump Writer"
    },
    "Artist":{
        "Text": "I'm an artist.",
        "Do": "jump Artist"
    },
    "Player":{
        "Text": "I'm a Player.",
        "Do": "jump Player"
    }
}}

You can also show some options only if some condition is true.

{"Choice":{
    "Developer":{
        "Text": "I'm a developer.",
        "Do": "Developer"
    },
    "Player":{
        "Text": "I'm a Player.",
        "Do": "Player",
        "Condition": "played == true" // This will only be shown if the condition is true.
    }
}}
PreviousCharactersNextImages

Last updated 6 years ago

Was this helpful?