custom sequence @message not work

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ashan
Posts: 4
Joined: Thu Nov 16, 2023 2:17 am

custom sequence @message not work

Post by ashan »

custom sequence using @Message() @Second() -> Message() seems not work.
Example:
Delay(){{end}}->Message(end);
TestSequence()@Message(end)
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: custom sequence @message not work

Post by Tony Li »

Are there any errors or warnings in the Console window?

Try this:

Code: Select all

Delay({{end}})->Message(end);
TestSequence()@Message(end)
ashan
Posts: 4
Joined: Thu Nov 16, 2023 2:17 am

Re: custom sequence @message not work

Post by ashan »

appreciate for your reply. I found the reason is that I clicked the continue button. And the sequence has been interrupted. How to call the sequence after the conversation ends?
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: custom sequence @message not work

Post by Tony Li »

Hi,

If the sequence is in a dialogue entry, it won't run after the conversation has ended. Dialogue entry sequences only run during conversations. If TestSequence runs immediately, and not over a duration of time, you can use this sequence:

Code: Select all

Delay({{end}})->Message(end);
required TestSequence()@Message(end)
If the player doesn't click continue, TestSequence() will run after the delay duration.

If the player clicks continue before the delay duration, TestSequence() will run as soon as the continue button is clicked and will have one frame to complete.

If TestSequence() takes more than one frame to complete, add an empty node to the end of the conversation and set the Sequence to:

Code: Select all

TestSequence();
or, if you require the player to click the continue button:

Code: Select all

TestSequence()->Message(end);
Continue()@Message(end)
ashan
Posts: 4
Joined: Thu Nov 16, 2023 2:17 am

Re: custom sequence @message not work

Post by ashan »

Thank you for your patient and detailed explanation!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: custom sequence @message not work

Post by Tony Li »

Happy to help!
Post Reply