Dialogue & Cutscenes Functions - VsFoxaTeam/FNF-Unfulfilled-Journey-Foxa-Engine GitHub Wiki
Starts a dialogue loading a file inside mods/data/your-song-name/
and if the dialogue has ended, it calls startCountdown()
. If every dialogue line passed it will called onNextDialogue(line)
.
-
dialogueFile
- Thejson
file to load. -
song
- An optional value for a background music during the dialogue. (Relative tomods/music
)
Example: If i want to load a dialogue file mods/data/bopeebo/dialogue.json
using the pause menu song "Breakfast", I should use: startDialogue('bopeebo/dialogue', 'breakfast')
.
Starts a video during a cutscene. (Must Be a .MP4 Format)
-
videoFile
- The 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.
Same works with endSong()
but has an optional transition.
-
skipTransition
- The transition if the song exited.
This will restart the song that you are playing.
-
skipTransition
- The transition if the song exited.
This will load a new song.
-
name
- The name of the song you want to load. -
difficulty
- The difficulty ID of song.