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!
Multiple conversations with NPC - correct method
Re: Multiple conversations with NPC - correct method
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)".
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
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.
Thanks.
Re: Multiple conversations with NPC - correct method
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
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!
BTW - Thanks for your help!
Re: Multiple conversations with NPC - correct method
Hi,
Try ticking the Group checkbox on the nodes that don't have any Dialogue Text.
Try ticking the Group checkbox on the nodes that don't have any Dialogue Text.
Re: Multiple conversations with NPC - correct method
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
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
Glad to help!