Page 1 of 1

Control Dialogs pause and play

Posted: Wed Nov 15, 2023 8:35 am
by angelothic
Hello,

I'm creating tutorial system with dialog system for unity.
Dialog start and explain game, then after 3 text need to stop. Then user click UI element and continue dialog.
How can I do that?
Can I add parameter like. conversion node onEndStop true or yes .

Thank you

Re: Control Dialogs pause and play

Posted: Wed Nov 15, 2023 10:32 am
by Tony Li
Hi,

Use the sequencer command WaitForMessage() or Continue()@Message() to wait for the player to click the UI element.

If you need to hide the dialogue UI at step 3 until the player clicks the UI element, use the sequencer command SetDialoguePanel(false).

The Dialogue System Extras page has a Tutorial Conversation Example scene (direct download).

Re: Control Dialogs pause and play

Posted: Wed Nov 15, 2023 11:19 am
by angelothic
Thanks for answer.

I downloaded and checked example. It uses dialog trigger on use event.

How can I call "SequencerMessage(ClickedRed)" from custom script ?
Tried find answer but not available I think.


Thank you

Re: Control Dialogs pause and play

Posted: Wed Nov 15, 2023 11:27 am
by Tony Li
Hi,

Use this line:

Code: Select all

PixelCrushers.DialogueSystem.Sequencer.Message("ClickedRed");