Quest Notification System

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
will_888
Posts: 26
Joined: Mon Feb 07, 2022 4:09 am

Quest Notification System

Post by will_888 »

Hello
I was trying to make a system that notifies the player when a quest is accepted/ongoing/successful/return to npc (outside of the quest log).
Like a notification system,
Is there some built-in solution for this?
If not, what could be a good approach?

Thanks in advance for the support. :)
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Notification System

Post by Tony Li »

hi,

You can add a script with an OnQuestStateChange(questName) method to your Dialogue Manager GameObject. For example, something like:

Code: Select all

void OnQuestStateChange(string questName)
{
    var state = QuestLog.GetQuestState(questName);
    if (state != QuestState.Unassigned)
    {
        DialogueManager.ShowAlert($"{questName} {state}");
    }
}
Post Reply