ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.12k stars 2.19k forks source link

Need help with dialouge #1547

Closed Tigedraglon10 closed 2 years ago

Tigedraglon10 commented 2 years ago

Describe your problem here.

I need help with the dialogue, ive seen tutorials but it doesnt play

Are you modding a build from source or with Lua?

Lua

What is your build target?

Mac

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

No response

DEV-idiotXD commented 2 years ago

just code with source code

Tigedraglon10 commented 2 years ago

just code with source code

Well i cant, im on mac.

DEV-idiotXD commented 2 years ago

just code with source code

Well i cant, im on mac.

why do u have a apple device

ya can get better than a mac for the same price

Tigedraglon10 commented 2 years ago

Anyways, Im going to get a windows 11 for christmas, so ill just start doing it later.

DEV-idiotXD commented 2 years ago

Anyways, Im going to get a windows 11 for christmas, so ill just start doing it later.

just install a cracked version of win10....

lunarcleint commented 2 years ago

Can I see your Code?

Tigedraglon10 commented 2 years 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', 'roses-tylenol'); 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