#Dialog choices with Lua Cutscenes
47 messages · Page 1 of 1 (latest)
function onTalk()
disableMovement()
say("Hello")
choiceDialog({
{
-- This choice will not display a dialog, and instead run the code in 'onChosen'
"DIALOG_WITH_EFFECT",
onChosen = function ()
jump(0.2)
wait()
waitUntilOnGround()
end
},
{
-- this choice will still display a dialog like normal, but also run code in 'onEnd' after the dialog finishes.
"DIALOG_CLOSE",
onEnd = function ()
-- call this function to close the choice dialog and allow the cutscene to continue.
closeChoiceDialog()
end
}
})
enableMovement()
end
function onEnd(room, wasSkipped)
enableMovement()
end```
this is what i have at the moment
this just does the say("Hello") part then finishes
that's kinda gross to look at, not sure how to format it lol, here is a picture that is easier to read
to make it look better add lua after first three backquotes
finishes means that dialogue ends?
what formatting exactly?
oh you have to have a break after
yea
...but screenshot looks better anyway because vscode highlightes more things...
so, what about this?
and you can walk?
yeah, it basically does everything except the choice dialog
the enable movement works and i can talk to it again etc.
just says [Hello] and that's it
huh
i just tried using the exact template from the guide
that does nothing too
ig you should ping Cruor. ~~not me cuz i'm in his blacklist
~~
it's not cruor's problem
i'm gonna try a bit more troubleshooting and ping gamation about it if i can't figure it out
Why not Cruor's?
he made lua cutscenes
example doesn't work
ok.
maybe that's why you are on the blacklist 
he did make lua cutscenes
but it's not lua cutscenes that is the issue
anyways, i've found a workaround for this in the meantime
just using the choice helper instead of choiceDialog
@vast mortar where's the example from? what did the log say when the cutscene failed?
So you’re probably like me and have no idea how code works, but you want to make those cool cutscenes like you’ve seen in maps like paint…
near the bottom
"Making dialogue choices with the ChoiceDialog function"
not sure about the log
oh wait you used this example
never knew about it
i thought you were talking about this https://github.com/Cruor/LuaCutscenes/blob/master/LuaCutscenes/Assets/LuaCutscenes/examples/example_talker.lua