How to update quest status in script?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ekta Bhutwala
Posts: 40
Joined: Mon Sep 05, 2022 5:40 am

How to update quest status in script?

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

Re: How to update quest status in script?

Post 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");
}
Post Reply