Bool checks from scripts.
Bool checks from scripts.
I want different conversations to trigger based on the time of day. I have very simple bool checks set up in my time manager class and was wondering if there was a way to have conversations use those bool checks as variables.
Re: Bool checks from scripts.
Hi,
Yes. One way is to configure your time manager to set DS variables, such as :
Then check that variable in your conversation nodes' Conditions fields and/or in the Conditions sections of Dialogue System Triggers.
Alternatively, you can register C# functions with Lua and check those functions in Conditions
Yes. One way is to configure your time manager to set DS variables, such as :
Code: Select all
DialogueLua.SetVariable("Time", 0900);
Alternatively, you can register C# functions with Lua and check those functions in Conditions