Page 1 of 1

How to update quest status in script?

Posted: Sat Sep 24, 2022 3:10 pm
by Ekta Bhutwala
Hii

I want to update quest status in script and will call OnUse() to start conversation.

based on quest status conversation will start dialog tree.

Thanks.

Re: How to update quest status in script?

Posted: Sat Sep 24, 2022 9:59 pm
by Tony Li
Hi,

Use the QuestLog class. Example:

Code: Select all

if (QuestLog.GetQuestState("questTitle") == QuestState.Unassigned)
{
    QuestLog.SetQuestState("questTitle", QuestState.Active);
    DialogueManager.StartConversation("Active Quest Conversation Title");
}