Delaying conversation using Sequencer

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
davegagne
Posts: 17
Joined: Mon Nov 22, 2021 10:26 pm

Delaying conversation using Sequencer

Post by davegagne »

Hi,

I've got a question for which I haven't found the exact answer so far. I'd like to delay the start of a dialogue using a sequence command in the START of the dialogue. Is there any built-in solution that would allow this? The only thing I managed to do so far still showed an empty UI, I'd like to delay the triggering of the conversation so that doesn't happen at all.

Also, please note our set up uses the same Dialogue Manager for many dialogues and only swaps the conversations before calling them, so we can't use Timed Events.

Thanks !

Dave
User avatar
Tony Li
Posts: 22154
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delaying conversation using Sequencer

Post by Tony Li »

Hi Dave,

Try setting the conversation's <START> node's Sequence to something like:

Code: Select all

SetDialoguePanel(false, immediate);
Delay(2);
SetDialoguePanel(true)@2
This will delay the conversation by 2 seconds.
davegagne
Posts: 17
Joined: Mon Nov 22, 2021 10:26 pm

Re: Delaying conversation using Sequencer

Post by davegagne »

This is incredibly elegant and fixes my problem (with a super quick answer time, really appreciate that !).

Thanks a lot Tony !

Dave
User avatar
Tony Li
Posts: 22154
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delaying conversation using Sequencer

Post by Tony Li »

Glad to help!
Post Reply