How can I get the title and description of the quest?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
misottyo
Posts: 1
Joined: Fri Sep 17, 2021 10:12 am

How can I get the title and description of the quest?

Post by misottyo »

How can I get the title and description of the quest?
I want to get the name and description of the quest with the name or ID of the quest registered in the database.

If possible, I would like to be able to acquire the acquired name and description in a localized state.
I want to be able to acquire in English if English is selected, and in that language if another language is selected.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I get the title and description of the quest?

Post by Tony Li »

Hi,

Use the QuestLog class. It returns localized text. Example:

Code: Select all

string questTitle = QuestLog.GetQuestTitle("MyQuest"); // Get localized quest title.
string questDescription = QuestLog.GetQuestDescription("MyQuest"); // Get localized description for current state.
Post Reply