Location check condition for Different Conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Mchaint
Posts: 10
Joined: Sun Mar 03, 2024 9:16 pm

Location check condition for Different Conversation

Post by Mchaint »

Hi Tony,

I wanted to trigger different conversations for different locations, for example same NPC will start different conversation based on Player's location, I tried to use condition check with Location 1, Location 2, Location 3 , True, but it doesn't fire as intended, always starts location 1 (first conversation), I made trigger collider box set as Is Trigger named as Location 1,2,3.

May I know what is the correct way to Trigger different conversations with Location check condition?
(I managed to successfully trigger it with Quest Active/Complete check according to your Tutorial.)

Thanks.
User avatar
Tony Li
Posts: 23238
Joined: Thu Jul 18, 2013 1:27 pm

Re: Location check condition for Different Conversation

Post by Tony Li »

Your approach sounds good. I recommend setting a Dialogue System variable when the player enters a location. For example, use a Dialogue System Trigger set to OnTriggerEnter:

location1Trigger.png
location1Trigger.png (54.32 KiB) Viewed 2541 times

And check the value of this variable in your conversation:

locationCheck.png
locationCheck.png (25.54 KiB) Viewed 2541 times
Mchaint
Posts: 10
Joined: Sun Mar 03, 2024 9:16 pm

Re: Location check condition for Different Conversation

Post by Mchaint »

Thank you so much Tony, always love using all of your assets :)
User avatar
Tony Li
Posts: 23238
Joined: Thu Jul 18, 2013 1:27 pm

Re: Location check condition for Different Conversation

Post by Tony Li »

Glad to help!
Post Reply