Please help, talk to multi NPC

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
namdang99
Posts: 12
Joined: Fri Nov 18, 2022 4:46 am

Please help, talk to multi NPC

Post by namdang99 »

Hi Tony!
I have one quest relate to 2-3 NPC, I can't get the right NPC to talking. please help. As you see in image there are two NPC name Toru and Yin. But when I interact to whoever it show error or show the same conversation
I also does not know what is the condition: "Actor" doing?
Please help
Attachments
Untitled1.png
Untitled1.png (55.49 KiB) Viewed 548 times
aaa.png
aaa.png (27.29 KiB) Viewed 551 times
Untitled.png
Untitled.png (131.94 KiB) Viewed 551 times
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Please help, talk to multi NPC

Post by Tony Li »

Hi,

Please see: Character GameObject Assignments. This explains how the Dialogue System associates GameObjects with actors.

Also, Actor["NPC_Toru"].Name will never be blank (""). If you want to check if the current actor is "NPC Yin", you can check Variable["ConversantIndex"]:

Variable["ConversantIndex"] == "NPC_Yin"

(More info: Special Lua variables)

If that doesn't help, please let me know how you are starting the conversation(s).
namdang99
Posts: 12
Joined: Fri Nov 18, 2022 4:46 am

Re: Please help, talk to multi NPC

Post by namdang99 »

Thank you, i did it.
But now I have other issue: my quest relate to 3 NPCs: NPC_Shuu, NPC_Yin, NPC_Chin.
In my order player will talk : NPC_Shuu -> NPC_Yin -> NPC_Chin.
But after talk to NPC_Shuu to get quest player can interact to NPC_Chin and the quest is appear in NPC_Chin. How can I prevent it?
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Please help, talk to multi NPC

Post by Tony Li »

namdang99 wrote: Thu Dec 08, 2022 11:35 pmBut after talk to NPC_Shuu to get quest player can interact to NPC_Chin and the quest is appear in NPC_Chin. How can I prevent it?
Would you please post a screenshot to show what you mean?
namdang99
Posts: 12
Joined: Fri Nov 18, 2022 4:46 am

Re: Please help, talk to multi NPC

Post by namdang99 »

in my order NPC will talk to NPC_Toru => NPC_Yin => NPC Chin. But after get request from NPC_Toru , I can talk to NPC_Chin and get error message.
How can I disable temporary this quest on NPC_Chin?
Attachments
1.jpg
1.jpg (207.47 KiB) Viewed 512 times
Untitled.jpg
Untitled.jpg (163.11 KiB) Viewed 512 times
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Please help, talk to multi NPC

Post by Tony Li »

Thank you. I understand what you mean now. Please let me know if this patch fixes the issue:

QM_GiverDialoguePatch_2022-12-13.unitypackage
namdang99
Posts: 12
Joined: Fri Nov 18, 2022 4:46 am

Re: Please help, talk to multi NPC

Post by namdang99 »

I applied your patch but it does'nt fix.
Do I config something wrong? please check for me
Attachments
2.jpg
2.jpg (187.52 KiB) Viewed 504 times
1.jpg
1.jpg (483.83 KiB) Viewed 504 times
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Please help, talk to multi NPC

Post by Tony Li »

Hi,

This updated patch will address the issue if your main quest info has dialogue text, such as heading text:

QM_GiverDialoguePatch_2022-12-14.unitypackage
namdang99
Posts: 12
Joined: Fri Nov 18, 2022 4:46 am

Re: Please help, talk to multi NPC

Post by namdang99 »

It's working fine now, Thank Tony!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Please help, talk to multi NPC

Post by Tony Li »

Glad to help!
Post Reply