How do I change the dialog trigger?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
PinkPanther
Posts: 12
Joined: Sun Aug 06, 2023 7:43 pm

How do I change the dialog trigger?

Post by PinkPanther »

I need the dialog to start at the start of the game, and then to be able to continue the dialog using the button. I need to somehow change the On Start trigger to OnUse. How to do it?
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I change the dialog trigger?

Post by Tony Li »

Hi,

Those seem like two separate things.

> I need the dialog to start at the start of the game, and then to be able to continue the dialog using the button.

Inspect the Dialogue Manager GameObject, and set Display Settings > Subtitle Settings > Continue Button to Always.


> I need to somehow change the On Start trigger to OnUse. How to do it?

What's the purpose for doing this? You could either set up two Dialogue System Triggers (one set to OnStart, another to OnUse), or in C# change the trigger, such as:

Code: Select all

GetComponent<DialogueSystemTrigger>().trigger = DialogueSystemTriggerEvent.OnUse;
Post Reply