Page 1 of 1

Multiple conversations with NPC - correct method

Posted: Sat Feb 20, 2021 11:07 am
by Grayson
Hi, I have several NPC's that I want the player to have multiple conversations with. So far I've found 2 methods, but I am not sure either one is the best way. Any help / guidance would be appreciated!

1) Have a separate dialogue system trigger on the NPC for each conversation - this seems very inefficient but as I understand it each dialogue system trigger can only trigger a single conversation.

2) Have one conversation for the NPC with conditions on each branch of the conversation based on state of the game and player so the correct thread of the conversation is played - This seems better, but the conversation could be huge.

Is there another method I am missing? Or a tutorial that can help with multiple conversations per NPC?

Thoughts?

Thanks!

Re: Multiple conversations with NPC - correct method

Posted: Sat Feb 20, 2021 1:42 pm
by Tony Li
Hi,

It's a matter of preference. Personally, I like to keep the conditional logic in one place, so I use method 2. With wordy NPCs, the Dialogue System Trigger will often start a "hub" conversation that only checks conditions and immediately links to other sub-conversations. To link to another conversation, inspect a node. From the Inspector's "Links To" dropdown, select "(Another Conversation)".

Re: Multiple conversations with NPC - correct method

Posted: Sat Feb 20, 2021 4:36 pm
by Grayson
Thanks. I've followed method 2 and used the pass through function to move to the next node if the conditions fail. However, when it finally gets to a node that is suppose to trigger the conversation, the conversation starts but the first entry in the dialogue window is my player's portrait with no text. It pauses for about 5 - 10 seconds and then the conversation starts. At first I thought it was because the link to box had <START 0> instead of the 1st node in the conversation but that doesn't seem to be it. How do I go directly to the first line of the conversation and not have a pause with no text and my player's portrait?

Thanks.

Re: Multiple conversations with NPC - correct method

Posted: Sat Feb 20, 2021 4:41 pm
by Tony Li
Can you share a picture of your conversation? If so, please let me know where the cross-conversation link goes to, and what Conditions and Sequences are on nodes.

Re: Multiple conversations with NPC - correct method

Posted: Sun Feb 21, 2021 12:42 am
by Grayson
Sure, below are the a few images. The conversation nodes, then each dialogue entry in the node. In this example, the first 2 nodes fail the conditions and pass through to the 3rd node which plays the conversation. However, I get the blank dialogue box for about 3 - 5 seconds and then the the portrait with the woman and text appears.

BTW - Thanks for your help!
dial1.jpg
dial1.jpg (33.91 KiB) Viewed 866 times
dial2.jpg
dial2.jpg (56.8 KiB) Viewed 866 times
dial3.jpg
dial3.jpg (61.34 KiB) Viewed 866 times
dial4.jpg
dial4.jpg (47.46 KiB) Viewed 866 times
dial5.jpg
dial5.jpg (68.11 KiB) Viewed 866 times
diag6.jpg
diag6.jpg (77.06 KiB) Viewed 866 times

Re: Multiple conversations with NPC - correct method

Posted: Sun Feb 21, 2021 8:48 am
by Tony Li
Hi,

Try ticking the Group checkbox on the nodes that don't have any Dialogue Text.

Re: Multiple conversations with NPC - correct method

Posted: Sun Feb 21, 2021 10:10 am
by Grayson
Nope. When I did that the blank dialogue box just stays there and doesn't let the next dialogue text come through. Any other information you need to help?

Re: Multiple conversations with NPC - correct method

Posted: Sun Feb 21, 2021 10:15 am
by Grayson
OK.....tried to only check the group text on the non-START node for the issue. That seemed to work. Will experiment a bit more and see if that fixes it all around. Thanks again for the help!

Re: Multiple conversations with NPC - correct method

Posted: Sun Feb 21, 2021 10:19 am
by Tony Li
Glad to help!