Snycing Behavior Designer Variables with DSU
Posted: Wed Jul 10, 2019 8:48 pm
Hello,
I have been looking into synchronizing Behavior Designer variables into DSU. Namely, I have a variable named "Friendly" which is true by default, and certain dialogue options will make this false. This partially works, however, I noticed you mentioned in the integration documentation that the synchronization only occurs during start and end of conversations. I would like to be able to make changes at other times too, namely using enable or onuse functions of Dialogue System Triggers with a Lua command use.
You mentioned in the documentation that there are two functions: SyncToLua() or SyncFromLua(). However, as I understand these are C# commands and not Lua commands, is that right? Is there any way to update these variables via Lua commands, or do I need to call a c# script in order to do that?
I have been looking into synchronizing Behavior Designer variables into DSU. Namely, I have a variable named "Friendly" which is true by default, and certain dialogue options will make this false. This partially works, however, I noticed you mentioned in the integration documentation that the synchronization only occurs during start and end of conversations. I would like to be able to make changes at other times too, namely using enable or onuse functions of Dialogue System Triggers with a Lua command use.
You mentioned in the documentation that there are two functions: SyncToLua() or SyncFromLua(). However, as I understand these are C# commands and not Lua commands, is that right? Is there any way to update these variables via Lua commands, or do I need to call a c# script in order to do that?