How can I designate an area so that when the player walks into it, a dialogue is triggered only once?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hhyu
Posts: 11
Joined: Fri Jul 05, 2024 9:31 am

How can I designate an area so that when the player walks into it, a dialogue is triggered only once?

Post by hhyu »

How can I designate an area so that when the player walks into it, a dialogue is triggered only once? After that, the dialogue should proceed with normal click interactions. I considered using a collider, but it would continuously trigger the dialogue.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I designate an area so that when the player walks into it, a dialogue is triggered only once?

Post by Tony Li »

Hi,

Configure the trigger collider to try to start the conversation, but then configure the conversation to only run once.

1. Add a trigger collider to a GameObject.
2. Add a Dialogue System Trigger component to the GameObject.
3. Tick "Add 'Player' Tag" (assuming the player is tagged "Player").
4. Select Add Action > Start Conversation and select the conversation.
5. Configure the conversation to run only once like this: How To: Run a Conversation Only Once
Post Reply