Are Custom Sequencer Commands the only way to trigger C# functions in conversations?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
2linescrossed
Posts: 47
Joined: Tue May 16, 2023 10:37 pm

Are Custom Sequencer Commands the only way to trigger C# functions in conversations?

Post by 2linescrossed »

Hi, quick and basic question here - is the only way to integrate C# functions into the sequencer through custom sequencer commands?
I just want to do something basic like having a visual novel styled Cutscene change backgrounds & toggle on different light sources depending on which of the backgrounds are loaded.
I guess in theory I could just do these functions and separate conversations into multiple smaller conversations with things like background changes + Bg transition effects happening between the conversations but that sounds like it would be more complicated to process, with more potentially going wrong.

Can I get some feedback on what's the smartest way to handle this?
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Are Custom Sequencer Commands the only way to trigger C# functions in conversations?

Post by Tony Li »

Hi,

Register your C# function with Lua, and use it in the dialogue entry's Script field.
Post Reply