Sequence message is being ignored

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Deses
Posts: 15
Joined: Fri May 28, 2021 9:27 am

Sequence message is being ignored

Post 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
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence message is being ignored

Post 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.
Deses
Posts: 15
Joined: Fri May 28, 2021 9:27 am

Re: Sequence message is being ignored

Post 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?
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence message is being ignored

Post 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.
Post Reply