Page 1 of 1

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

Posted: Sun Jul 28, 2024 10:46 pm
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.

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

Posted: Mon Jul 29, 2024 8:09 am
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