Page 2 of 2
Re: 3D Quest objective marker?
Posted: Sun Oct 29, 2023 1:16 pm
by Fitbie
Thanks, you are llterally the best asset dev out there
Re: 3D Quest objective marker?
Posted: Sun Oct 29, 2023 2:28 pm
by Tony Li
Glad to help!
Re: 3D Quest objective marker?
Posted: Mon Oct 30, 2023 4:12 am
by Fitbie
I apologize for being so noisy, but I wanted to know one more thing.
Is there a patch for the QuestStateListener class?
There are fields
Code: Select all
public QuestStateIndicatorLevel[] questStateIndicatorLevels
public QuestEntryStateIndicatorLevel[] questEntryStateIndicatorLevels[0];
and I would really like it to be wrapped in a virtual property so I can override it
And additional question: how to make a player can only track 1 quest at time? I know there was such topic, but is it works for now?
Thank you!
Re: 3D Quest objective marker?
Posted: Mon Oct 30, 2023 7:07 am
by Tony Li
Hi,
Those two variables are public, so you can just work with them as-is.
To track one quest at a time, you can tick the StandardUIQuestLogWindow component's Track One Quest At A Time checkbox. When the player clicks a quest's Track toggle in the quest log window, it will untrack all other quests.
If you want to do more -- such as automatically untracking other quests when you toggle tracking outside of the quest log window, you can add a script to the Dialogue Manager that has OnQuestStateChange and OnQuestTrackingEnabled methods.
In OnQuestStateChange, if the quest was just turned active and tracking is enabled, turn off tracking on all other quests.
In OnQuestTrackingEnabled, turn off tracking on all other quests.
Re: 3D Quest objective marker?
Posted: Sat Nov 11, 2023 4:46 am
by Fitbie
Hey, Tony!
Another question:
I made my own system for tracking targets during a quest, bounded to QuestStateListener
But here's the problem: let's say we took a quest and enabled its tracking. And then the quest goes to "Success" state, we complete it.
The quest tracking is not turned off with changing state, which prevents my system from turning off tracker "compass" UI. Can you tell me if this can be fixed? I need DS to disable quest tracking when changing quest state to complete, abandoned, etc.. Thanks!
Re: 3D Quest objective marker?
Posted: Sat Nov 11, 2023 9:28 am
by Tony Li
Hi,
You can add a script with an
OnQuestStateChange() method to your Dialogue Manager GameObject. Example:
Code: Select all
void OnQuestStateChange(string quest)
{
if (QuestLog.GetQuestState(quest) == QuestState.Success)
{
QuestLog.SetQuestTracking(quest, false);
}
}