for the lazy people, or if you think your version of the code is wrong: allowCountdown = false function onStartCountdown() if allowCountdown == false and isStoryMode then startVideo('YOURCUTSCENEFILENAMEHERE') allowCountdown = true return Function_Stop; end return Function_continue end function onTimerCompleted(tag, loops, loopsLeft) if tag == 'startDialogue' then -- Timer completed, play dialogue startDialogue('dialogue', 'breakfast'); end end
@thegeckoisgaming I just stole the .LUA from another mod, here's what I got and it works: local allowCountdown = false function onStartCountdown() - - Block the first countdown and start a timer of 0.8 seconds to play the dialogue if not allowCountdown and isStoryMode and not seenCutscene then setProperty('inCutscene' , true); runTimer(' startDialogue' , 0.8); allowCountdown = true return Function_Stop; end return Function_Continue; end function onTimerCompleted(tags, loops, loopsLeft) if tag == 'startDialogue' then - - Timer completed, play dialogue startDialogue('dialogue', 'breakfest'); end end - - (When a dialogue is finished, it calls startCountdown again) function onNextDialogue(count) - - triggered when the dialogue line starts, 'line' starts with 1 end function onSkipDialogue(count) - - triggered when you press Enter and skip a dialogue line that was still being typed, dialogue line starts with 1 That took me an extremely long time to type, I hope you found it helpful!
Extremely helpful! All of your tutorials helped me so far and none of 'em failed, continue man, also, you forgot to tell that you don't really need a programming thing, it's just easier using one, but it works aswell if you don't use a programming app and just write it in!
THANK YOU SO MUCH! Your videos are super helpful and EXTREMELY easy to follow! I subbed earlier because you helped me create my first mod! I've already started on another one and this one needs dialogue! Thanks again!
I really, REALLY need some help here. I followed every step to add dialogue, but I think I messed something up? I'm not a coder so I can't figure out what I did wrong. The dialogue shows up in game, but the countdown continues regardless and the song starts (the music starts specifically, no arrows appear). When I skip through the dialogue, the music stops and the dialogue loops. Sorry if I didn't articulate the question well, I'm just really at a loss here!
Heya so I have triple checked my code and it is the same as yours and I have done every single step but i keep having a problem were the dialogue plays while the music plays and when the dialogue is finished the song doesn't play. if you could help that would be awesome
@@polygon_animetz actuallt both cutscenes use a series of coding and each animation sound or camera movement is happening at a certain moment. Idk how to explain better than this
@davidplayzz1207 Well, the Happy Tree Funkers mod uses straight up animation. Yes, coding to actually insert the cutscene but no coding involved with the animation itself
I need help, I did everything like in the video, but when I start the game and then start the week, the song starts straight away, otherwise... nothing just happens. no game crash, no dialogue, the song starts straight away, what should I do?
for the lazy people, or if you think your version of the code is wrong:
allowCountdown = false
function onStartCountdown()
if allowCountdown == false and isStoryMode then
startVideo('YOURCUTSCENEFILENAMEHERE')
allowCountdown = true
return Function_Stop;
end
return Function_continue
end
function onTimerCompleted(tag, loops, loopsLeft)
if tag == 'startDialogue' then -- Timer completed, play dialogue
startDialogue('dialogue', 'breakfast');
end
end
@thegeckoisgaming I just stole the .LUA from another mod, here's what I got and it works:
local allowCountdown = false
function onStartCountdown()
- - Block the first countdown and start a timer of 0.8 seconds to play the dialogue
if not allowCountdown and isStoryMode and not seenCutscene then
setProperty('inCutscene' , true);
runTimer(' startDialogue' , 0.8);
allowCountdown = true
return Function_Stop;
end
return Function_Continue;
end
function onTimerCompleted(tags, loops, loopsLeft)
if tag == 'startDialogue' then - - Timer completed, play dialogue
startDialogue('dialogue', 'breakfest');
end
end
- - (When a dialogue is finished, it calls startCountdown again)
function onNextDialogue(count)
- - triggered when the dialogue line starts, 'line' starts with 1
end
function onSkipDialogue(count)
- - triggered when you press Enter and skip a dialogue line that was still being typed, dialogue line starts with 1
That took me an extremely long time to type, I hope you found it helpful!
thank you good person
thats not the code for dialogue lmfao
Extremely helpful! All of your tutorials helped me so far and none of 'em failed, continue man, also, you forgot to tell that you don't really need a programming thing, it's just easier using one, but it works aswell if you don't use a programming app and just write it in!
THANK YOU SO MUCH! Your videos are super helpful and EXTREMELY easy to follow! I subbed earlier because you helped me create my first mod! I've already started on another one and this one needs dialogue! Thanks again!
yeah this is epic, nice job on this tutorial series! followed it so far, and it's amazing, so nice job!
Having trouble with the dialogue part.. I'm using version v0.7.1h of Psych Engine, and the dialogue sequence isn't showing.
same
compile build with allowed this function
did u fix it?
i love you bro, thx
Yo nice tutorial it really helped!
hey bro, can you make a tutorial on how to make a cutscene play when you lose in fnf psych engine? i really need that tutorial
You probably need to search up a tutorial on how to make a custom death screen
a@@Bombssivo
So helpful thank you so much i needed this
I really, REALLY need some help here. I followed every step to add dialogue, but I think I messed something up? I'm not a coder so I can't figure out what I did wrong. The dialogue shows up in game, but the countdown continues regardless and the song starts (the music starts specifically, no arrows appear). When I skip through the dialogue, the music stops and the dialogue loops. Sorry if I didn't articulate the question well, I'm just really at a loss here!
bro SAME i have no idea what is happening
Cool funko pops bro
Heya so I have triple checked my code and it is the same as yours and I have done every single step but i keep having a problem were the dialogue plays while the music plays and when the dialogue is finished the song doesn't play. if you could help that would be awesome
Aye, can u make a tutorial about making an in-game cutscene like the Witty mod, and week 7? Great video tho keep up the great work
for week 7 i think it's just an animation
but for whitty... that is a mystery
@@polygon_animetz actuallt both cutscenes use a series of coding and each animation sound or camera movement is happening at a certain moment. Idk how to explain better than this
@@daverDaverd1207 so mass amounts of coding, got it
@davidplayzz1207 Well, the Happy Tree Funkers mod uses straight up animation. Yes, coding to actually insert the cutscene but no coding involved with the animation itself
whitty isn't mid game cutscenes, it's a cutscene put at the beginning of the song
i'm having a problem with importing in different animations, because they just sequence into eachother wich should not be happening
he be growing
I need help, I did everything like in the video, but when I start the game and then start the week, the song starts straight away, otherwise... nothing just happens. no game crash, no dialogue, the song starts straight away, what should I do?
Did you make sure you put both the dialogue's JSON file and the LUA script in the song's chart folder? Because If you haven't, the dialogue don't play
i donno dialogue doesn't show i follow every step i check like 5 times and still it doesn't show up
what if i dont have a loop snimation do i leave it blank? or just use the name of my idle
my song play during the cutscene :(
for some eason my character doesnt show up in the portrait editor and bf just gets smaller when i press reload image...can someone help?
Are you on Android? I'm also on android and it could be difficult sometimes to press reload image. It takes a couple tries but you will get it!
@@ldsandthemisfitsquares no I'm on a windows pc??
@@OswaldHemair Do you have both the PNG and the XML files for the character? You must have these two files to make a character portrait
@@TyongiLorin yes obviously
@@OswaldHemair And did you put them in mods > images > dialogue?
the fact you dont need visual code, you can use notepad
bro looks like me 💀
12.5K view lets gooo
Is there some way for the dialogue to play after a song is over?
nvm I found the video
th-cam.com/video/hibTYZRUJXM/w-d-xo.html
nvm
do i have to do the code thing
I think so, but someone posted the script in comments
It did not work for me
did u fix it?