How to play Timeline and close dialogue Ui from last node's sequence field

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
PepeJEe
Posts: 18
Joined: Sat Apr 24, 2021 8:39 am

How to play Timeline and close dialogue Ui from last node's sequence field

Post by PepeJEe »

Hey! I am trying to play timeline when I press "I got the coins" button which is the last node in the conversation. I am able to play the "ScoutFarewell" timeline using speed or play, but the ui doesn't close, it will stay open. Could use a little help, thanks :)

-best wishes, Pepe
Attachments
image2.PNG
image2.PNG (75.04 KiB) Viewed 556 times
image1.PNG
image1.PNG (56.37 KiB) Viewed 556 times
User avatar
Tony Li
Posts: 21722
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to play Timeline and close dialogue Ui from last node's sequence field

Post by Tony Li »

Hi,

Timeline(speed) should run right away and allow the conversation to end. If you were to use the Timeline() command's 'play' or 'resume' parameters on the last node, include the 'nowait' and 'nostop' to allow the conversation to end while the timeline continues playing.
PepeJEe
Posts: 18
Joined: Sat Apr 24, 2021 8:39 am

Re: How to play Timeline and close dialogue Ui from last node's sequence field

Post by PepeJEe »

I tried with both the speed and play, including [nowait] [nostop] but i't still doesn't end the conversation. The last node is staying green. Oh and I just realized it gave me this weird error?
Attachments
image4.PNG
image4.PNG (42.26 KiB) Viewed 551 times
image3.PNG
image3.PNG (501.67 KiB) Viewed 551 times
PepeJEe
Posts: 18
Joined: Sat Apr 24, 2021 8:39 am

Re: How to play Timeline and close dialogue Ui from last node's sequence field

Post by PepeJEe »

I managed to get rid of the error. And now the ui closes. I include these [] with "nowait" and "nostop" which messed it up a bit, stupid me...
Thank you Tony!

-Pepe
User avatar
Tony Li
Posts: 21722
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to play Timeline and close dialogue Ui from last node's sequence field

Post by Tony Li »

Hi Pepe,

I'm glad you got it working. For future readers: square brackets around parameters is a convention that means the parameter is optional. If you include the parameter, do not include the square brackets.
Aldurroth
Posts: 43
Joined: Wed Jul 20, 2022 8:44 pm

Re: How to play Timeline and close dialogue Ui from last node's sequence field

Post by Aldurroth »

this was really helpful!
Post Reply