Skip to content
Discussion options

You must be logged in to vote

take this dialogue script from psych engine (its very simple and works in js engine):

local doDialogue = true
function onStartCountdown()
	if doDialogue and not seenCutscene and isStoryMode then
		startDialogue('dialogue', 'breakfast') --breakfast is the dialogue music
		doDialogue = false
		return Function_Stop
	end
	return Function_Continue
end

and change isStoryMode to not isStoryMode as not means the opposite bool/truth value

so if isStoryMode is false (you came from the freeplay menu), not isStoryMode is true

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@nate902011
Comment options

@moxie-coder
Comment options

@nate902011
Comment options

@moxie-coder
Comment options

@TotallyXrystal
Comment options

Answer selected by moxie-coder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants