Page 1 of 1

Lua Conditions

Posted: Mon Apr 05, 2021 1:15 pm
by Dev_sam
Hey guys,

I'm trying to link variables from my own script with Lua function, but somehting went wrong and my conditions seems ignored. I followed the tutorial video. I created a function that return a bool, then I registered it as a Lua function. I created a new scriptable Custom Lua Function Info and set my new function. Then I set the new conditions in a dialog entry.

I added some sceenshot in attachment, can anyone helps me?

Thanks

Re: Lua Conditions

Posted: Mon Apr 05, 2021 1:57 pm
by Tony Li
Hi,

Are there any errors or warnings in the Console window?

Temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. When your code gets to Lua.RegisterFunction, look for a log in the Console that reports that the function is registered.

What GameObject is the script on? Is the scene name correct?