Quest UI

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Barto1983
Posts: 24
Joined: Thu Mar 02, 2017 8:52 am

Quest UI

Post by Barto1983 »

Hello,
I have a question regarding the Quest UI.

I have made my own template and now I want to show all active quests with the description.

Which Lua command do I need to read all active quests into a list?

Thank you for your help
Yours sincerely
User avatar
Tony Li
Posts: 21722
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest UI

Post by Tony Li »

Hi,

There are two ways:

1. Add a Standard UI Quest Log Window component to your quest UI, and assign the UI elements to it. The component will handle everything such as populating the quest list into a scroll rect. To see how it works, you can temporarily add one of the existing quest log UI prefabs into your scene.

2. Or, if you want to bypass the Standard UI Quest Log Window script and write your own, you can directly read the quest list using QuestLog.GetAllQuests(). The QuestLog class has several other functions, too, to get quest group names, quest states, etc.
Barto1983
Posts: 24
Joined: Thu Mar 02, 2017 8:52 am

Re: Quest UI

Post by Barto1983 »

Thanks Tony,

works great.
User avatar
Tony Li
Posts: 21722
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest UI

Post by Tony Li »

Happy to help!
Post Reply