How to wait until the dialogue box disappears before running lua script?
Posted: Sun Jan 21, 2024 3:00 pm
Hi, I'm working on a cutscene in my game. The dialogue tree currently looks like this:
I'm running into a problem where the dialogue boxes (in both of the second nodes with dialogue text) stay visible during the lua script in the "END" nodes, which looks like this:
I have tried the following:
- Combining the two end nodes into one and having both dialogue nodes connected to them
- Separating the dialogue nodes from the end nodes with empty nodes
- Swapping the conversant direction for various nodes
- Making the start of the script happen at OnMessage(Typed) (this almost works-- the scripts are played after the dialogue box finished typing text, but before it disappears)
What is the correct way to make sure the dialogue disappears, then all of the Lua scripts happen?
I'm running into a problem where the dialogue boxes (in both of the second nodes with dialogue text) stay visible during the lua script in the "END" nodes, which looks like this:
Code: Select all
Fade(stay, 1)@0.5->Message(Faded);
SendMessage(NewDay,,CutsceneManager)@Message(Faded);
Fade(in,1)@Message(Faded)->Message(FadedIn);
SendMessage(NewDayFinish,,CutsceneManager)@Message(FadedIn);
- Combining the two end nodes into one and having both dialogue nodes connected to them
- Separating the dialogue nodes from the end nodes with empty nodes
- Swapping the conversant direction for various nodes
- Making the start of the script happen at OnMessage(Typed) (this almost works-- the scripts are played after the dialogue box finished typing text, but before it disappears)
What is the correct way to make sure the dialogue disappears, then all of the Lua scripts happen?