One way dialouge

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

One way dialouge

Post by hrohibil »

Hello Tony

How to setup a welcome dialogue on game start, but only the NPC talks.
Thank you
EDIT:

IIf possible i want the game to pause at the same time.
I managed to get it going but the first message is very quick, how do i put a delay so initial text dont dissapper that fast
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: One way dialouge

Post by Tony Li »

Hi,

To make a dialogue in which only the NPC speaks, assign all nodes to the NPC (i.e., all nodes gray, except the <START> node which you can leave untouched). Tip: To create a new node with the same speaker, hold down Shift when right-clicking on the node; then select Create Child Node. Otherwise new nodes will alternate between player and NPC.

Each subtitle stay onscreen for the duration of its node's Sequence. If the Sequence is empty, it will use the Dialogue Manager's Display Settings > Camera & Cutscene Settings > Default Sequence, which is initially set to: Delay({{end}})

This delays for the value of {{end}}, which is based on the text length and the Dialogue Manager's Subtitle Settings > Subtitle Chars Per Second and Min Subtitle Seconds. You can make {{end}} last longer by increasing Min Subtitle Seconds and/or decreasing Subtitle Chars Per Second.

Alternatively, you can set the first node's Sequence to a literal value. For example, to delay for 3 seconds: Delay(3)
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: One way dialouge

Post by hrohibil »

Thank you Tony

Two more questions.

1: How do freeze the game while the dialogue screen is up?

2: How do i bring the dialogue UI to front? It seems behind my mobile UI controller
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: One way dialouge

Post by Tony Li »

hrohibil wrote: Thu Jul 21, 2022 4:34 am1: How do freeze the game while the dialogue screen is up?
If you're using a Dialogue System Trigger, tick Actions > Start Conversation > Pause Game During Conversation.
hrohibil wrote: Thu Jul 21, 2022 4:34 am2: How do i bring the dialogue UI to front? It seems behind my mobile UI controller
Inspect the canvas that contains your dialogue UI. If you haven't told the Dialogue Manager to use a different canvas, the dialogue UI will be in the Dialogue Manager GameObject's Canvas child GameObject. Set this canvas's Sort Order to a higher number than your mobile UI controller's Sort Order.

You may also want to hide your mobile UI controller and disable player movement controls during conversations. You can use a Dialogue System Events component to do that. See 07:00 of the Interaction Tutorial for a video description of how to do that.
Post Reply