Set response timout on/off

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ste
Posts: 15
Joined: Wed Aug 07, 2019 2:45 am

Set response timout on/off

Post by ste »

Hi,

I love using the dialogue system plugin for Unity!

I have a question: during the same conversation I would like to activate the response timout for some dialogues and for some others I would like to deactivate it.

What is the best way to do it? Is it possible to do it directly in the Conversation ispector or do I need a specific script (which one and where I need to attach it?)?

Thank you in advance!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Set response timout on/off

Post by Tony Li »

Hi,

Thanks for using the Dialogue System!

You don't need to do any scripting.

Use the SetTimeout() sequencer command.

For example, in the screenshot below, the node "What is 1+1?" sets a 5-second timeout for the next response menu. Afterward, the node "More dialogue..." deactivates timeouts.

Image

The {{default}} tells the node to also play the Dialogue Manager's Default Sequence, which usually delays for a duration to give the player time to read the subtitle. You can read more about sequences here: Cutscene Sequences.
ste
Posts: 15
Joined: Wed Aug 07, 2019 2:45 am

Re: Set response timout on/off

Post by ste »

Thank you. It works great!!! :)
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Set response timout on/off

Post by Tony Li »

Glad to help!
Post Reply