Page 1 of 1

Sequence message is being ignored

Posted: Fri Feb 18, 2022 1:15 pm
by Deses
Hi again :)

I'm back again with another issue... this time I'm having problems with the messaging while writing sequences. I want some commands to execute only after Delay({{end}}) is over but they are being executed immediately.

The problem is similar to the one asked in this old thread, as it also has to do with the continue button.

The intended behavior is to display the Continue button only after the text has stopped being typed by Dialogue System, and in order to do that I've enabled "Hide continue button on continue".

Image

And then, in the "Dialogue System Controller" I've set the Default Sequence to the following:

Code: Select all

SetContinueMode(false);
Delay({{end}})->Message(Done);
required SetContinueMode(true)@Message(Done);
required SetActive(Continue Button, true)@Message(Done);
But SetActive and SetContinueMode are executed immediately, showing the Continue button as soon as the conversation step is shown.

If I remove Message(Done) and set some seconds...

Code: Select all

SetContinueMode(false);
Delay({{end}});
required SetContinueMode(true)@5;
required SetActive(Continue Button, true)@5;
This works. The conversation appears without continue button and after 5 seconds, the Continue Button appears and I can click it.

This is how Dialogue System Controller is configured:
Image

Re: Sequence message is being ignored

Posted: Fri Feb 18, 2022 1:43 pm
by Tony Li
Hi,

To hide the continue button while the typewriter is typing, I recommend using this setup instead: On the typewriter effect, configure the OnCharacter() event to deactivate the continue button. Configure OnEnd() to activate it. No need to do anything with sequences.

Re: Sequence message is being ignored

Posted: Fri Feb 18, 2022 4:35 pm
by Deses
Nice!! For anyone else that wants to do this:

Image

But that still doesn't fix that in that specific example Messages were not working? Should they work in my previous setup to begin with?

Re: Sequence message is being ignored

Posted: Fri Feb 18, 2022 5:01 pm
by Tony Li
I can't say off the top of my head. If you'd like, feel free to send a reproduction project to tony (at) pixelcrushers.com.