Using sub-entries as quest descriptions

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
bluebuttongames
Posts: 91
Joined: Tue Jul 14, 2015 8:22 am

Using sub-entries as quest descriptions

Post by bluebuttongames »

Hi there,

Is there a way to use subentries of a quest as the quest description, so for example "Go to the waterfall" would be entry 1 that would appear on the tracking UI, then when arrived it would change to entry 2 "Fill the bucket" and finally entry 3 "Hand in the quest" .

At the moment if I do this all subentries are displayed on the tracking UI.

Thanks,

BB
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using sub-entries as quest descriptions

Post by Tony Li »

Hi,

What you describe is exactly the way quest entries are designed to work. The quest tracker HUD should only show active and completed entries. At design time, set entry 1 to active, and set the other entries to unassigned. When the player arrives at the waterfall, set entry 1 to success and entry 2 to active.
bluebuttongames
Posts: 91
Joined: Tue Jul 14, 2015 8:22 am

Re: Using sub-entries as quest descriptions

Post by bluebuttongames »

Interesting, I'm using the NGUIQuestTracker script which did not exhibit this behaviour.

Maybe I was doing something wrong, but I had to add this state check in GetQuestEntryDescription to make it function as expected:

if (QuestLog.GetQuestEntryState(quest,i)==QuestState.Active)
{
sb.Append(FormattedText.Parse(QuestLog.GetQuestEntry(quest, i), DialogueManager.MasterDatabase.emphasisSettings).text);
if (i < entryCount) sb.Append("\n");
}
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using sub-entries as quest descriptions

Post by Tony Li »

You are correct. I just fixed that. The update will be in the next version, and it will function like your code above. I also added a "showCompletedEntries" checkbox that defaults to unticked. If ticked, it will also show completed entries.
Kat
Posts: 7
Joined: Wed Jan 09, 2019 5:58 am

Re: Using sub-entries as quest descriptions

Post by Kat »

When will this be updated? Currently my quest entries do not track the queststate in the questtrackerUI just the first entry.


edit: Nevermind, using the Standard UI Quest Tracker you can just select "Show completed entries"

My apologies
Last edited by Kat on Mon Jan 28, 2019 9:47 am, edited 1 time in total.
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using sub-entries as quest descriptions

Post by Tony Li »

Hi Kat,

If you're using NGUI, you can download the updated NGUI Support package from the Dialogue System Extras page.

If you're not using NGUI -- for example, if you're using the default Standard UI -- then make sure your quest entries' States are set to "active".

The next update, which includes the updated NGUI Support package, is set for release this week.
Kat
Posts: 7
Joined: Wed Jan 09, 2019 5:58 am

Re: Using sub-entries as quest descriptions

Post by Kat »

Tony Li wrote: Mon Jan 28, 2019 9:37 am If you're not using NGUI -- for example, if you're using the default Standard UI -- then make sure your quest entries' States are set to "active"
I did this but it leaves the active entries up after quest entry is set to "success". Do i need to specify to deactive active entries?
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using sub-entries as quest descriptions

Post by Tony Li »

If you set a quest's main state to success, the quest tracker HUD (NGUI or Standard UI) should no longer show the quest, including entries, unless you've ticked Show Completed Quests.

If the quest's main state is active, set entries that you don't want to show to success. However, if you've ticked Show Completed Entry Text, those entries will continue to show.
Post Reply