Page 1 of 1

Please help, talk to multi NPC

Posted: Thu Dec 08, 2022 3:49 am
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

Re: Please help, talk to multi NPC

Posted: Thu Dec 08, 2022 8:41 am
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).

Re: Please help, talk to multi NPC

Posted: Thu Dec 08, 2022 11:35 pm
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?

Re: Please help, talk to multi NPC

Posted: Fri Dec 09, 2022 10:44 am
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?

Re: Please help, talk to multi NPC

Posted: Tue Dec 13, 2022 3:13 am
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?

Re: Please help, talk to multi NPC

Posted: Tue Dec 13, 2022 1:21 pm
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

Re: Please help, talk to multi NPC

Posted: Tue Dec 13, 2022 10:37 pm
by namdang99
I applied your patch but it does'nt fix.
Do I config something wrong? please check for me

Re: Please help, talk to multi NPC

Posted: Wed Dec 14, 2022 11:37 am
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

Re: Please help, talk to multi NPC

Posted: Thu Dec 15, 2022 2:52 am
by namdang99
It's working fine now, Thank Tony!

Re: Please help, talk to multi NPC

Posted: Thu Dec 15, 2022 5:16 am
by Tony Li
Glad to help!