Scene Event AFTER conversation is done.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ren
Posts: 3
Joined: Sat Jul 11, 2020 10:02 am

Scene Event AFTER conversation is done.

Post by Ren »

Hi, I’ve watched the official scene event tutorial but somehow mine calls the scene event during the conversation and NOT after. What I want is activate/call my own scripts AFTER I Finish/END the entire conversation (like after I end and close the UI!)
I think the only difference between mine and the tutorial video is that mine ends with NPC’s line when the tutorial ends with Player’s response.
Could you please tell me if I’m doing something wrong? Thank you so much for your help!
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Scene Event AFTER conversation is done.

Post by Tony Li »

Hi,

For that, use a Dialogue System Trigger set to On Conversation End. Add it to one of the two primary conversation participants' GameObjects, and select Add Action > OnExecute() Event.

If you only want to run the event under certain conditions, you can set the Conditions section.
Ren
Posts: 3
Joined: Sat Jul 11, 2020 10:02 am

Re: Scene Event AFTER conversation is done.

Post by Ren »

Thanks! It works!
I have one more question.

I'm trying to put dialogue trigger object (with box collider) in my custom layer but it seems player doesn't interact with it if the layer is not in default. What should I do? Sorry if this was in the manual. I guess I'm not good at finding info.
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Scene Event AFTER conversation is done.

Post by Tony Li »

Hi,

If you're using a Selector, add your custom layer to the layer mask.

If you're using a Proximity Selector, make sure layers are set to collide in your project settings.
Post Reply