Quest tracker show completed quest once

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
kimosabe
Posts: 22
Joined: Tue Aug 09, 2022 7:19 pm

Quest tracker show completed quest once

Post by kimosabe »

Hi,

Is there a way to make the quest tracker only show the completed quest once, and ignore it for other quest tracker updates.
I currently have the 'show completed quests' enabled.
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest tracker show completed quest once

Post by Tony Li »

Hi,

There's no such built-in feature, but you could make a subclass of StandardUIQuestTracker.

Override the AddQuestTrack() method. For example, something like:

Code: Select all

public class MyQuestTracker : StandardUIQuestTacker
{
    protected override void AddQuestTrack(string quest)
    {
        base.AddQuestTrack(quest);
        
        // If the quest is done, turn off tracking so it doesn't get added any more after this refresh:
        if (QuestLog.IsQuestDone(quest))
        {
            QuestLog.SetQuestTracking(quest, false);
        }
    }
}
Make sure to tick the Show Completed Quests checkbox.
kimosabe
Posts: 22
Joined: Tue Aug 09, 2022 7:19 pm

Re: Quest tracker show completed quest once

Post by kimosabe »

Thank you very much!
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest tracker show completed quest once

Post by Tony Li »

Glad to help!
Post Reply