Page 1 of 1

Check Quest state and Variables

Posted: Wed Feb 27, 2019 3:07 pm
by OneManOnMars
Hi,
I have a question and have the feeling that it might be a silly one. Is there a simple way to check the current state of a quest or of a variable. My game does not feature any way for the player to check this via UI but while developing, it would be helpful to check this information. In the Dialoge Manager I can see this information but it does not update while playing. I mean the the display is not updated if I am not wrong. Altough the value is changed in the background


How can I check the values of any quest or variable?

Thank you for your help.

Re: Check Quest state and Variables

Posted: Wed Feb 27, 2019 6:53 pm
by Tony Li
Hi,

Use the Dialogue Editor's Watches section to view runtime values:

Image

You can also add a Lua Console to the Dialogue Manager. This is useful for builds. Press ~+L to open the Lua Console, then enter commands such as:

Code: Select all

return CurrentQuestState("Enemy Attack")
or even:

Code: Select all

SetQuestState("Enemy Attack", "active")
Variable["enemiesDefeated"] = 0
to set values at runtime.

Re: Check Quest state and Variables

Posted: Thu Feb 28, 2019 3:48 am
by OneManOnMars
Thank you very much!

Re: Check Quest state and Variables

Posted: Thu Feb 28, 2019 8:32 am
by Tony Li
Glad to help!