Hello,
I am trying to create a custom UI for the quest log. My goal is to load variables out of the dialogue database and display this data in a custom UI inside the quest log. I’m guessing that I need to load the entire quest list from pixelcrushers.questmachine to start, but I’m unable to get the quest list.
See image below. For example: I would like to load the data for both of these quests out of the database so I can create a button with text displaying quest.Heading.text. What would be the best method to do so?
Loading all quests data from the database
Loading all quests data from the database
- Attachments
-
- Capture.PNG (11.56 KiB) Viewed 433 times
Re: Loading all quests data from the database
Hi,
Your post is in the Quest Machine section. Are you using Quest Machine for your quests, or only the Dialogue System?
Your post is in the Quest Machine section. Are you using Quest Machine for your quests, or only the Dialogue System?
Re: Loading all quests data from the database
Sorry for the mixup, only the dialogue system is being used.
Re: Loading all quests data from the database
[I moved this thread from the Quest Machine forum section.]
Hi,
Can you use the StandardUIQuestLogWindow? The Dialogue System ships with several UI prefabs that use StandardUIQuestLogWindow. (See Quest UIs.) If you need to modify its functionality, you can make a subclass of StandardUIQuestLogWindow or the abstract QuestLogWindow class.
If that doesn't fit your needs, you can use the QuestLog class to get quest info. In particular, use QuestLog.GetAllQuests() to get the quest list, or QuestLog.GetAllQuestsAndGroups() if you're using quest groups.
Hi,
Can you use the StandardUIQuestLogWindow? The Dialogue System ships with several UI prefabs that use StandardUIQuestLogWindow. (See Quest UIs.) If you need to modify its functionality, you can make a subclass of StandardUIQuestLogWindow or the abstract QuestLogWindow class.
If that doesn't fit your needs, you can use the QuestLog class to get quest info. In particular, use QuestLog.GetAllQuests() to get the quest list, or QuestLog.GetAllQuestsAndGroups() if you're using quest groups.
Re: Loading all quests data from the database
Thank you for your help! I should be fine for now with being able to load the quest data from there.
Re: Loading all quests data from the database
Glad to help!