Page 1 of 1

Set Variable in C#

Posted: Mon Jan 16, 2023 8:07 pm
by Simplehiro
Is there a way to change a variable trough a c# code?

i update a quest like this:

Code: Select all

 QuestLog.SetQuestState("Omi", QuestState.Success);
I have set some Booleans in the Dialogue System and would like to change them with code like i do it with my Quests.

Re: Set Variable in C#

Posted: Tue Jan 17, 2023 10:35 am
by Tony Li
Hi,

Yes, use DialogueLua.SetVariable(). Example:

Code: Select all

DialogueLua.SetVariable("Talked To Mayor", true);