Bool checks from scripts.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
erorc78
Posts: 3
Joined: Mon Apr 18, 2022 3:30 pm

Bool checks from scripts.

Post 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.
User avatar
Tony Li
Posts: 22135
Joined: Thu Jul 18, 2013 1:27 pm

Re: Bool checks from scripts.

Post 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
Post Reply