Verwex / Funkin-Mic-d-Up-SC

A mod to Friday Night Funkin' called FNF: Mic'd Up, previously named EX Replayability.
Other
77 stars 111 forks source link

Question: How do you add dialouge AFTER a song. #121

Open djawesomeyt opened 3 years ago

djawesomeyt commented 3 years ago

Please check for duplicates, similar issues, or if your question was answered on the issue megathread's FAQ before asking.

What is your question?

I know how dialogue works in mic'd up it's just what if I wanted to add dialogue at the end of a song or before a game. I tried using dialogue = CoolUtil.coolTextFile(Paths.txt('dialogue/dialoguehere')); but i always get a value exception error. Someone please help.

Purble11 commented 3 years ago

put this and make sure its in playstate or it won't work

if (FileSystem.exists(Paths.txt(SONG.song.toLowerCase() + '/dialogue$dialogueSuffix')))
{
    dialogue = File.getContent(Paths.txt(SONG.song.toLowerCase() + '/dialogue$dialogueSuffix')).trim().split('\n');

    for (i in 0...dialogue.length)
    {
        dialogue[i] = dialogue[i].trim();
    }
}
schoolIntro(doof);
djawesomeyt commented 3 years ago

where exactly in playstate do i put it and what do i replace?

Purble11 commented 3 years ago

use the method in my first comment in issue #115

djawesomeyt commented 3 years ago

what if i wanted to do it AFTER a song?

Purble11 commented 3 years ago

put so it puts the dialogue 1 bpm away from the song ending using the method ais (As I Said) in #115

djawesomeyt commented 3 years ago

i'm getting null object reference

Purble11 commented 3 years ago

cuz u dont have the dialogue file (sorry for late response)