Page 1 of 1

"Quest '[name]' doesn't exist. Can't set quest state to active"

Posted: Mon Dec 12, 2022 6:18 pm
by givemeahat
Hello!

I've been attempting to change the state of a quest via C# script using the following code.

Code: Select all

QuestLog.SetQuestState("A", QuestState.Active);
However, I noticed I was repeatedly getting this console message...
error1.png
error1.png (6.81 KiB) Viewed 145 times
...despite the fact that "A" is a quest that exists in my database.
quest a.png
quest a.png (36.85 KiB) Viewed 145 times
This got me curious, so I tried with a different quest - one that I had changed using the same code before, that I knew was working fine, and I encountered the same message.
error2.png
error2.png (6.89 KiB) Viewed 145 times
sign contract.png
sign contract.png (38.68 KiB) Viewed 145 times
Any help in fixing this issue would be greatly appreciated. Thanks!

Re: "Quest '[name]' doesn't exist. Can't set quest state to active"

Posted: Mon Dec 12, 2022 8:32 pm
by Tony Li
Hi,

Is it possible that the Dialogue System's Initial Database field is pointing to the wrong dialogue database asset?