Trigger Dialogue system once ?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Rai Jo
Posts: 2
Joined: Sun Aug 19, 2018 5:25 am

Trigger Dialogue system once ?

Post by Rai Jo »

how can i trigger dialogue once
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Trigger Dialogue system once ?

Post by Tony Li »

Hi,

Use a variable or an actor field. For example, let's say you can only talk to NPC "Adam" once. Add an actor field. I called it "Talked" and set it false:

Image

Configure the Dialogue System Trigger's Condition. Adam's "Talked" field must be false:

Image

In the conversation, set Adam's "Talked" field true:

Image
n_hagialas
Posts: 36
Joined: Wed May 03, 2017 4:34 pm

Re: Trigger Dialogue system once ?

Post by n_hagialas »

I found a way to do this by adding an action that sets a component disabled, and dragged the Dialogue System Trigger itself into it.

I was curious what happened to the "once" boolean value? Was it removed in the update?
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Trigger Dialogue system once ?

Post by Tony Li »

Yes, the Once checkbox was removed. It was confusing because it only applied to the current instance of the scene. When you loaded a saved game or went to another scene and returned to the scene, the checkbox would be reset. Some devs expected it to be persistent in saved games and across scenes.

If you want the same behavior as the Once checkbox in 2.x, do exactly what you did (Set Component Enabled/Disabled action).
Post Reply