Two DS triggers

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 368
Joined: Thu Nov 04, 2021 12:50 pm

Two DS triggers

Post by hrohibil »

Hi Tony


If I have a situation where I have two Dialogue system triggers on my NPC, and I want the second to be activated and the first disabled when the conversations are completed , how would you approach that?

Right now I am doing it with code..
hrohibil
Posts: 368
Joined: Thu Nov 04, 2021 12:50 pm

Re: Two DS triggers

Post by hrohibil »

Wow..

Please see below image. I made a public method to remove the Dialogue system trigger and a collider. In the end node under its events i attached this script and link to its method.

I have not seen this error before


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

Re: Two DS triggers

Post by Tony Li »

The Dialogue Editor doesn't have a good reference to your database. Tips:

1. Try restarting Unity. Then double-click your dialogue database to open it in the Dialogue Editor.

2. Since you're working with a Dialogue System Trigger which is presumably in the scene, add a Scene Event. Don't use a Scene-Independent Event.

3. In the worst case, if the above doesn't work, delete that node and create it again.
hrohibil
Posts: 368
Joined: Thu Nov 04, 2021 12:50 pm

Re: Two DS triggers

Post by hrohibil »

Thanks

Restarting it worked :-)
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: Two DS triggers

Post by Tony Li »

Glad to help!
Post Reply