How to resume stopped conversation in Textline?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
xuoot
Posts: 19
Joined: Wed Jul 29, 2020 3:01 am

How to resume stopped conversation in Textline?

Post by xuoot »

Hi!

I just started using Textline and DialogueSystem recently and I'm running into an issue. I'm trying to let someone continue conversations with a character if they hit certain criteria (like getting 5 coins or something) but don't know how to stop and resume conversations in the framework of the Textline system.

I don't know how to resume a conversation that's waiting on WaitForMessage(Forever) if there's more content afterwards (like in the Barbara or Charlie example) and didn't know how to block until some condition was hit. I tried to add a blocking condition in the Sequence() but it caused the whole game screen to go blank and you can't see the dialogue box at all.

Alternatively, Is there a way to jump to a certain point in a Conversation? Say jumping to line 4 of the Barbara dialogue?

Also, none of the conversation progress gets stored currently between plays and I didn't know if I needed to add a save helper or some state to the Textline demo that isn't currently there yet.

Any insights would be appreciated. Thanks!
J
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to resume stopped conversation in Textline?

Post by Tony Li »

Hi,

I recommend looking at the Lobby example. It doesn't use WaitForMessage(Forever). Instead, if the player hits the end, it loops back to a previous node. But you could change it so it checks a condition and either loops back or goes to a new branch if something has changed since the last time the conversation played.
xuoot
Posts: 19
Joined: Wed Jul 29, 2020 3:01 am

Re: How to resume stopped conversation in Textline?

Post by xuoot »

Thanks Tony! I am looking at the Lobby example and in the following image I saw that Charlie's conversation has a WaitForMessage(Forever) that prevents the conversation from going to the next exchange ("Hey" -> "this number is blocked"). Is there a way to advance the conversation past the WaitForMessage on "Okay, cool" to the "Hey" or would I have to add a conditional branch to go there? A screenshot is attached!
Screen Shot 2020-07-29 at 8.02.37 AM.png
Screen Shot 2020-07-29 at 8.02.37 AM.png (370.71 KiB) Viewed 381 times
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to resume stopped conversation in Textline?

Post by Tony Li »

Hi,

Once it gets to a WaitForMessage(Forever) node, it's hard to get it to continue.

Instead, take a look at Adam's or Barbara's conversations. They can continue forever, although once you get to the end they just loop a basic "hello<-->goodbye". You could do the same except add another branch so that "hello" links to either "goodbye" or (if a condition is true) a new branch.
Post Reply