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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
givemeahat
Posts: 4
Joined: Wed Jul 08, 2020 3:21 pm

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

Post 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 135 times
...despite the fact that "A" is a quest that exists in my database.
quest a.png
quest a.png (36.85 KiB) Viewed 135 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 135 times
sign contract.png
sign contract.png (38.68 KiB) Viewed 135 times
Any help in fixing this issue would be greatly appreciated. Thanks!
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Hi,

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