Events
Monogatari has a lot of useful events that fire when certain engine events happen. These can be used to run your own custom functions with monogatari.on ()
.
For example, the following code will create a function that will be run every time the didLoadGame event fires:
Below is an in-progress list of all events Monogatari has.
Initialization, Setup, and Binding
Event | Description | Details |
| ||
| ||
| ||
| ||
| ||
|
Asset Preloading
Event | Description | Details |
| ||
| ||
| ||
|
Actions
Event | Description | Details |
| ||
| ||
| ||
|
Configurations
| |
| |
|
Localization
Event | Description | Details |
| ||
|
Save file Loading
Event | Description | Details |
| Event fires at the start of a save file load | After the player clicks to load the game but before the game finishes loading. |
| Event fires after a save file load | After a save file has finished loading and all storage variable are set, but before anything is drawn to the screen and before players have control. |
Other:
Event | Description | Details |
| Event fires after dialog text finishes | After every line of dialog in Monogatari's typewriter animation finishes and the player is able to click to get a new line. This includes at the end of the animation, as well as after clicking to skip the animation, or after every fed line if typewriter animation is disabled. |
Last updated