Page 1 of 1

Trigger Dialogue system once ?

Posted: Sun Aug 19, 2018 5:37 am
by Rai Jo
how can i trigger dialogue once

Re: Trigger Dialogue system once ?

Posted: Sun Aug 19, 2018 10:28 am
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

Re: Trigger Dialogue system once ?

Posted: Wed Sep 12, 2018 6:07 pm
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?

Re: Trigger Dialogue system once ?

Posted: Thu Sep 13, 2018 3:10 am
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).