[Solved] Chaining dialogs

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ava
Posts: 17
Joined: Tue Oct 30, 2018 2:53 pm

[Solved] Chaining dialogs

Post by ava »

Hello,

First: wonderful product! I'm learning how to work with DS and I'm loving it a lot!

Small question: I cannot find how I can chain multiple dialogs. By that I mean:

* I have an NPC with a Useable script and a DialogueSystemTrigger. This starts a dialog when I hover over the NPC and press space.

* At the end of that dialogue, I'd like to have the NPC start another dialog when I am using him again

* So I should change the Conversation field in the StartConversation action when the first dialogue ended. How can I do that?

Thanks for any help!
Alex
Last edited by ava on Wed Oct 31, 2018 4:48 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Chaining dialogs

Post by Tony Li »

Hi Alex,

I just replied in another thread. I'll copy that here:

Use a single Dialogue System Trigger that starts a "hub" conversation. Use cross-conversation links in the hub conversation to link to each of the 20 conversations. Add a condition to the first node of each conversation so that only one is true at any given time. I actually prefer this because it keeps all the logic in one place (the dialogue database).


To link to another conversation, select the origin node. In the Inspector, there's a "Link To:" dropdown. Select "(Another Conversation)". Then you can select the destination conversation and node.
ava
Posts: 17
Joined: Tue Oct 30, 2018 2:53 pm

Re: Chaining dialogs

Post by ava »

Good idea, I prefer this solution as well.

Thx!
Post Reply