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

Storage

There is a persistent storage object that you must use in case you want to keep some data from the user or other things. This data will be loaded again when the user loads a saved game.

var storage = {

}

Since the storage is a JSON object, you can save data just by setting a property:

storage.Name = "User name";

Or by using a javascript statement:

"$ storage.Name = "User name";"
PreviousSplit FilesNextText

Last updated 6 years ago

Was this helpful?