Hey forum!
May I know if there's a way to get quest state via script instead of just on the dialogue trigger?
e.g. a gameobject will be activated/deactivated if a quest is successful/ongoing.
Thank you and wish you a good day
Getting Quest State
Re: Getting Quest State
Hi,
Use the QuestLog class. Example:
If you want to be notified when a quest state changes, use a Dialogue System Events component or add an OnQuestStateChange method to the Dialogue Manager.
Use the QuestLog class. Example:
Code: Select all
if (QuestLog.GetQuestState("My Quest") == QuestState.Success)
{
Debug.Log("My Quest is successful.");
}