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
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!