Page 1 of 1

Set response timout on/off

Posted: Wed Aug 07, 2019 2:51 am
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!

Re: Set response timout on/off

Posted: Wed Aug 07, 2019 9:06 am
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.

Re: Set response timout on/off

Posted: Wed Aug 07, 2019 11:01 am
by ste
Thank you. It works great!!! :)

Re: Set response timout on/off

Posted: Wed Aug 07, 2019 12:23 pm
by Tony Li
Glad to help!