Page 1 of 2

NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Mon Aug 07, 2017 11:02 am
by minomod
1. I want the NPC to speak on my own once only. The screen shot is only 1, not 2.

2. Conversation Trigger: I want to keep conversation without interruption even if the conversation is proceeding at the bottom with On Start state.

The picture I want is that when the main character passes by, the surrounding NPCs want to keep talking to each other.

3. Is it possible for NPCs A and B to talk to each other on their heads?

Re: NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Mon Aug 07, 2017 12:04 pm
by Tony Li
minomod wrote:1. I want the NPC to speak on my own once only. The screen shot is only 1, not 2.
Like this?
  • 1: Automatically proceed to 2.
  • 2: Wait for player to click continue button. Then proceed to 3.
  • 3: Wait for player to click continue button. Then proceed to 4.
  • 4: Wait for player to click continue button. Then end conversation.
If so, inspect 1 and set the Sequence field to:

Code: Select all

Continue()@{{end}}
minomod wrote:2. Conversation Trigger: I want to keep conversation without interruption even if the conversation is proceeding at the bottom with On Start state.

The picture I want is that when the main character passes by, the surrounding NPCs want to keep talking to each other.
Set it up like this:
  • On the Conversation Trigger, set the Trigger to OnTriggerEnter.
  • Assign NPC A to Actor.
  • Assign NPC B to Conversant.
  • In the conversation, edit the conversation properties and tick Override Conversation Properties. Then tick Override Subtitle Settings. Finally, change the Continue Button mode to Never.
When the player passes through the trigger collider, it will start a conversation between NPC A and NPC B. The conversation will run without any input from the player.
minomod wrote:3. Is it possible for NPCs A and B to talk to each other on their heads?
Yes. On NPC A:
On NPC B:

Re: NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Tue Aug 08, 2017 10:00 am
by minomod
I will only ask one at a time. I do not think Google translates well.

Q1. The character must output 1 to 4 words. However, only 1 is output and 2 to 4 are not output.

Re: NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Tue Aug 08, 2017 10:33 am
by Tony Li
I understand now. Thank you for posting the screenshot.

A bark shows only one node. The Dialogue System will select a node that links from START:

Image

After it shows one node, it's done.

To show several nodes in order (1, 2, 3, 4), use a conversation. If you want to show the conversation's nodes through a bark UI, add these components to the character:
  • Override Dialogue UI: Assign the character to the UI field.
  • Bark Dialogue UI
Image

Re: NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Tue Aug 08, 2017 10:58 am
by minomod
I tried it as explained but it does not print.

1. There is an NPC called A.
2. The NPC outputs 1 on the head.
3. 1 disappearing. 2 outputs.
4. 2 disappearing. 3 outputs.
5. 3 disappearing. 4 outputs.

I want to do this.

Now 1 is output and next 2 is not output.

Re: NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Tue Aug 08, 2017 2:53 pm
by Tony Li
With Conversation Trigger, use this conversation:

Image

Re: NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Tue Aug 08, 2017 7:05 pm
by minomod
As described above, I confirmed in the UI that the conversations are played sequentially.

However, it does not appear in the actual game.

An error log is output.
(ArgumentNullException: Argument can not be null.
Parameter name: key)

The actor was assigned to the corresponding NPC, so the output was normal. Thank you.

Re: NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Tue Aug 08, 2017 8:27 pm
by Tony Li
Try to assign the NPC as Conversant also. Here's an example scene: BarkMonologue_2017-08-08.unitypackage

Re: NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Wed Aug 09, 2017 6:46 pm
by minomod
Thank you. NPC now progresses well in line.

Is it possible to output 1, 2, or 3 from the back when the dialog is already on the bottom like the attached screenshot?

The Conversrsation Trigger uses ON Start at the same time as the player and the NPC, so only one is played.

Re: NPC가 순차적으로 대사를 말하게 하는 방법

Posted: Wed Aug 09, 2017 7:13 pm
by Tony Li
Yes, inspect the Dialogue Manager and tick Allow Simultaneous Conversations. This lets two conversations run at the same time.


If there is only one conversation and you want the girl with purple hair to show her lines over her head, please let me know. I'll explain how to do it.