Unity Event at specific conversation node in local scene

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
MFB
Posts: 6
Joined: Tue May 21, 2019 5:52 am

Unity Event at specific conversation node in local scene

Post by MFB »

Hello!

I was wondering if it was possible to detect when you reach a certain node in a conversation?
Basically I would like a "visual novel"-like effect where once you reach a certain point in the conversation an image of the character changes on screen.
I have seen the "On Execute" events inside each conversation node, however they won't really allow me to interact with objects in a scene without some larger workarounds.
This On Execute event is essentially what I would want but with it being able to interact with objects in my scene alittle easier than the ones inside the conversation tree nodes.

Is there a way to facilitate this kind of functionality?

Thanks for the read!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Event at specific conversation node in local scene

Post by Tony Li »

Hi,

This is what the Sequence field is designed for. More info:
If you're using actor portraits, use the SetPortrait() sequencer command to change the character's current portrait.

Otherwise, in many cases you can drag GameObjects and assets into the Sequence field to reduce or eliminate the need to type anything. In some cases, you'll need to type in the commands, but the syntax is pretty simple.
MFB
Posts: 6
Joined: Tue May 21, 2019 5:52 am

Re: Unity Event at specific conversation node in local scene

Post by MFB »

Ah! Perfect! I watched through a playlist and only ever saw the sequencer tutorial for the camera so I assumed that was its main function, but this is amazing.

Thanks for the fast reply btw!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Event at specific conversation node in local scene

Post by Tony Li »

Happy to help!
Post Reply