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

Was this helpful?

  1. Script

Split Files

You may want to split your game in more files, and you can do so in a very easy way. Just create another javascript file, and if for example you want to put a label in there, just declare it like this:

script["NewLabel"] = {
    "Statements..."
}

In case of Multi Language Games:

script["Language"]["NewLabel"] = {
    "Statements..."
}

The same can be done with music, scenes, characters etc. just remember to import that file in the HTML as well and always before the options.js and monogatari.js files.

PreviousScenesNextStorage

Last updated 6 years ago

Was this helpful?