-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Lua Script API: Functions for Dialogues and Cutscenes
ShadowMario edited this page Sep 23, 2021
·
3 revisions
Starts a dialogue loading a file inside mods/data/your-song-name/
.
-
dialogueFile
- .TXT file to load -
song
- Optional value for a Background music during the dialogue
Example: If i want to load a dialogue file mods/data/bopeebo/dialogue.txt
using the pause menu song (Breakfast), i should use: startDialogue('bopeebo/dialogue', 'breakfast')
NOTE: When the dialogue is ended, it calls startCountdown()
NOTE 2: onNextDialogue(line)
callback is called for every dialogue line passed
Starts a Video Cutscene
-
videoFile
- File name of your video, it must be insidemods/videos/
Example: If you wanted to start the video mods/videos/ughCutscene.mp4
, you'd have to use startVideo('ughCutscene')
In case you forced a countdown stop for doing a pre-song cutscene or something, this starts the countdown again manually.
In case you forced a song end for doing a post-song cutscene or something, this ends the song manually.