ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.05k stars 2.1k forks source link

Dialogue #14785

Open Enois213 opened 1 month ago

Enois213 commented 1 month ago

Describe your bug here.

So when I open "Playing your Dialogue (on LUA/Downloaded Build)" (This https://cdn.discordapp.com/attachments/866856727621795850/890335034786062336/script.lua) It says "This content is no longer available." SO HOW AM I PLAY MY DIALOGUE?!

Command Prompt/Terminal logs (if existing)

No response

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows

Did you edit anything in this build? If so, mention or summarize your changes.

No?

TFLTV commented 1 month ago

Huh, that's weird, it seems that discord has deleted the file. I don't appear to have a copy of it, unfortunately.

JHOSEPEMC commented 1 month ago

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(tag, loops, loopsLeft) if tag == 'startDialogue' then -- Timer completed, play dialogue startDialogue('dialogue', 'breakfast'); end end

-- Dialogue (When a dialogue is finished, it calls startCountdown again) function onNextDialogue(count) -- triggered when the next 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 end

Buscas este codigo?