Page 1 of 1
Bool checks from scripts.
Posted: Tue Apr 19, 2022 7:00 pm
by erorc78
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.
Posted: Tue Apr 19, 2022 10:17 pm
by Tony Li
Hi,
Yes. One way is to configure your time manager to set DS variables, such as :
Code: Select all
DialogueLua.SetVariable("Time", 0900);
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