Using a custom script
Posted: Thu Nov 03, 2016 9:51 am
Hello
What is the simplest way to just have a script I've written execute when a certain dialog line is spoken? For instance, is there a way I can just drag and drop a script into a dialog node, and it'll fire when the node i used?
For instance, when I click a node in the dialog manager, I see this...

I though perhaps I could just drop a script into the Events box, but it doesn't let me select the function afterwards (like I would see when building a GUI).
The closest answer I could find is http://pixelcrushers.com/dialogue_syste ... erFunction, but I was wondering if there was a simpler one.
What is the simplest way to just have a script I've written execute when a certain dialog line is spoken? For instance, is there a way I can just drag and drop a script into a dialog node, and it'll fire when the node i used?
For instance, when I click a node in the dialog manager, I see this...

I though perhaps I could just drop a script into the Events box, but it doesn't let me select the function afterwards (like I would see when building a GUI).
The closest answer I could find is http://pixelcrushers.com/dialogue_syste ... erFunction, but I was wondering if there was a simpler one.