Trigger Dialogue system once ?
Trigger Dialogue system once ?
how can i trigger dialogue once
Re: Trigger Dialogue system once ?
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:
Configure the Dialogue System Trigger's Condition. Adam's "Talked" field must be false:
In the conversation, set Adam's "Talked" field true:
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:
Configure the Dialogue System Trigger's Condition. Adam's "Talked" field must be false:
In the conversation, set Adam's "Talked" field true:
-
- Posts: 36
- Joined: Wed May 03, 2017 4:34 pm
Re: Trigger Dialogue system once ?
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?
I was curious what happened to the "once" boolean value? Was it removed in the update?
Re: Trigger Dialogue system once ?
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).
If you want the same behavior as the Once checkbox in 2.x, do exactly what you did (Set Component Enabled/Disabled action).