Can object activate the dialogue? Not the Player

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Frioniel
Posts: 13
Joined: Fri Sep 22, 2017 9:25 am

Can object activate the dialogue? Not the Player

Post by Frioniel »

Hello

I'm using corgi engine with dialogue system.

and I wonder

can object activate the dialogue?? when the object is in the conversation zone? Not the player

----------------------------------------------------------------------------------------------------

What am I going to make is...

Switch? for gimmick?

push the box(object) into the conversation zone and dialogue system activates.

But when player goes into the conversation zone, dialogue system doesn't activate.


Game System Examples.

There is a locked door and only the special box can unlock the door by entering the conversation zone.

Player needs to push the special box to conversation zone to unlock the door.

When box goes into the conversation zone, door unlocks and dialogue system activates.

-Dialogue example-
Player: Yeah! I unlock the door!

After finishing dialogue.

Player can move.
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can object activate the dialogue? Not the Player

Post by Tony Li »

Hi,
Frioniel wrote:can object activate the dialogue?? when the object is in the conversation zone? Not the player
Yes. Here are the steps:

1. On the NPC's Conversation Zone's collider, tick Is Trigger.

2. Set the Conversation Trigger's Trigger to OnTriggerEnter.

3. To the Conversation Trigger's Condition > Accepted GameObjects list, add your special box.
Frioniel
Posts: 13
Joined: Fri Sep 22, 2017 9:25 am

Re: Can object activate the dialogue? Not the Player

Post by Frioniel »

Yeah! It worked!

I heartily thank you!
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can object activate the dialogue? Not the Player

Post by Tony Li »

Glad to help!
Post Reply