Page 1 of 1

Getting extra fields in quests from script

Posted: Fri Aug 19, 2022 11:21 am
by timbecile
Hey Tony,

I'm trying to create my own quest log, and I want to add some extra fields in the quest info (quest location, quest giver) - I know you can add extra fields in the quest itself, but is there a way to get that data back out via script?

Re: Getting extra fields in quests from script

Posted: Fri Aug 19, 2022 12:40 pm
by Tony Li
Hi,

Yes, use the DialogueLua class. Example:

Code: Select all

string questLocation = DialogueLua.GetQuestField("Some Quest", "Location").asString;
string questGiver = DialogueLua.GetQuestField("Some Quest", "Quest Giver").asString;

Re: Getting extra fields in quests from script

Posted: Fri Aug 19, 2022 1:27 pm
by timbecile
worked great! Thanks!

Re: Getting extra fields in quests from script

Posted: Fri Aug 19, 2022 2:04 pm
by Tony Li
Glad to help!