Page 1 of 1

Quest Notification System

Posted: Sun Feb 05, 2023 7:43 pm
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. :)

Re: Quest Notification System

Posted: Sun Feb 05, 2023 9:40 pm
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}");
    }
}