Page 1 of 1

Quest UI

Posted: Tue Nov 13, 2018 12:41 pm
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

Re: Quest UI

Posted: Tue Nov 13, 2018 2:21 pm
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.

Re: Quest UI

Posted: Tue Nov 13, 2018 3:03 pm
by Barto1983
Thanks Tony,

works great.

Re: Quest UI

Posted: Tue Nov 13, 2018 3:13 pm
by Tony Li
Happy to help!