Page 1 of 1

custom sequence @message not work

Posted: Sun Jan 28, 2024 9:45 pm
by ashan
custom sequence using @Message() @Second() -> Message() seems not work.
Example:
Delay(){{end}}->Message(end);
TestSequence()@Message(end)

Re: custom sequence @message not work

Posted: Sun Jan 28, 2024 10:09 pm
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)

Re: custom sequence @message not work

Posted: Mon Jan 29, 2024 8:43 pm
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?

Re: custom sequence @message not work

Posted: Mon Jan 29, 2024 8:56 pm
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)

Re: custom sequence @message not work

Posted: Wed Jan 31, 2024 3:31 am
by ashan
Thank you for your patient and detailed explanation!

Re: custom sequence @message not work

Posted: Wed Jan 31, 2024 8:00 am
by Tony Li
Happy to help!