Page 2 of 3

Re: How to talk on a timeline

Posted: Tue Oct 11, 2022 8:11 am
by Tony Li
The Continue Conversation clip only simulates a continue button click. It doesn't control the duration that the subtitle stays onscreen. Put the Conversation Clip clip where you want to show the next line.

Try leaving the dialogue entry nodes' Sequence fields blank, and set the conversation properties to something like this:

continueClipSetup.png
continueClipSetup.png (57.38 KiB) Viewed 404 times

Re: How to talk on a timeline

Posted: Tue Oct 11, 2022 1:07 pm
by SBSun
What does @{{end}} mean?

Adding that sequence did not implement the functionality I wanted.

As in the picture above, I want to activate the UI while the clip is in progress and deactivate it when finished. A clip is an Entry.

There are 4 entries like the first picture, and the 2nd picture also has 4 clips including the Start Conversation clip.

I hope that the first entry is output due to the Start Conversation Clip and the UI is deactivated between clips.

What I want is that the UI is not deactivated when the last entry ends, but after each entry activates the UI for a set period of time, it is deactivated when the time expires, and then gives a Deal until the next entry, so that the UI is activated by moving to the next entry.

Re: How to talk on a timeline

Posted: Tue Oct 11, 2022 2:35 pm
by Tony Li
Hi,

This example scene contains two examples:

DS_TimelineContinueExample_2022-10-11.unitypackage

The first example uses the Basic Standard Dialogue UI. The entire UI is only visible while showing a subtitle.

The second example uses the Letterbox Dialogue UI. The black bars are visible for the entire timeline, but the subtitle text is only visible while showing the subtitle.

Re: How to talk on a timeline

Posted: Wed Oct 12, 2022 10:18 am
by SBSun
Thank you so much for making your own example. I think I set the same by looking at the example, but I still don't get the UI disabled.

These are pictures of the DialogueSystem setup for my current project. Do you have any problems with these photos?

Re: How to talk on a timeline

Posted: Wed Oct 12, 2022 11:15 am
by Tony Li
Hi,

Please try setting the conversation's Override Display Settings > Sequence Settings > Default Sequence to:

Code: Select all

SetDialoguePanel(true); SetDialoguePanel(false)@{{end}}
I meant to leave the example scene set to this value, but I accidentally left it set to HidePanel(0)@{{end}}.

setDialoguePanelFalse.png
setDialoguePanelFalse.png (19.31 KiB) Viewed 397 times

Re: How to talk on a timeline

Posted: Wed Oct 12, 2022 11:36 am
by SBSun
oh! UI enable, disable works fine. However, in the default sequence, 'SetDialoguePanel(true); After adding the 'SetDialoguePanel(false)@{{end}}' syntax, I added Delay(3) to the sequence of the entry and tried to run it, but the Delay function does not work and the UI is not deactivated.

Why is Delay not running? I want to set the execution time of entries to a desired time.

Re: How to talk on a timeline

Posted: Wed Oct 12, 2022 12:47 pm
by Tony Li
To show the node for 3 seconds, you can set that node's Sequence to:

Code: Select all

SetDialoguePanel(true);
SetDialoguePanel(false)@3
The value of {{end}} is based on the text length and Subtitle Settings > Subtitle Chars Per Second and Min Subtitle Seconds.

Some alternatives:

- If you use a typewriter effect, you can hide the UI 1 second after the typewriter is done:

Code: Select all

SetDialoguePanel(true);
Delay(1)@Message(Typed)->Message(Hide);
SetDialoguePanel(false)@Message(Hide)
- If you play voice audio, you can hide the UI when the voice acting is done:

Code: Select all

SetDialoguePanel(true);
AudioWait(entrytaglocal)->Message(Hide);
SetDialoguePanel(false)@Message(Hide)

Re: How to talk on a timeline

Posted: Thu Oct 13, 2022 9:07 am
by SBSun
Oh thank you!

But a problem arose. When one Conversation is finished and you try to start the next Conversation, a warning like the picture is displayed and the conversation cannot be executed. Why?

Re: How to talk on a timeline

Posted: Thu Oct 13, 2022 9:32 am
by Tony Li
Add one more Continue Conversation clip at the end. This will end the conversation.

Re: How to talk on a timeline

Posted: Sun Oct 16, 2022 4:19 am
by SBSun
Thank you for answer.

Sorry, but one more problem has arisen...

There are three Enemys in the scene, and each Enemy speaks to itself. One person executes self-talk that is executed due to the timeline, and the other two execute self-talk as a Script.

However, as you can see from the above articles, the Conversation executed in the Timeline has a Default Sequence.
SetDialoguePanel(true); Set to SetDialoguePanel(false)@2.

Normally, it runs due to Continue Clip and should be deactivated after 2 seconds, but when all three of those Enemys are activated, sometimes a dialogue should be output due to Continue Clip, but sometimes there is no output, and there is a bug that turns off immediately after 1 second instead of 2 seconds. There was.

However, when I disable the other two Enemy and run it, it runs normally according to the timeline.

May I know why?