Quest Giver reward dialog won't show up when "Return" node is active

Announcements, support questions, and discussion for Quest Machine.
Post Reply
Geri860
Posts: 8
Joined: Fri Sep 10, 2021 9:00 am

Quest Giver reward dialog won't show up when "Return" node is active

Post by Geri860 »

Hi!
I have a little problem here.
When I explore the circle, then go back to report, the quest giver just throws a no job to offer.
No reward text etc.
I've watched the youtube tutorials like 15 times, I did everything exactly the same way.
So what could be the problem ? Any suggestions? :D
User avatar
Tony Li
Posts: 21928
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Giver reward dialog won't show up when "Return" node is active

Post by Tony Li »

Hi,

You can download the completed tutorial assets from the Quest Machine Extras page. Compare the quest in the completed tutorial assets package to your own.

Also, while playing, select the Player GameObject in the Hierarchy. The Quest Editor window will show the state of the player's quest(s). This will let you check if the quest is in the correct state after entering the magic circle. Maybe it's completing the Return To NPC node too early and immediately progressing to the Success state, or something like that.
Geri860
Posts: 8
Joined: Fri Sep 10, 2021 9:00 am

Re: Quest Giver reward dialog won't show up when "Return" node is active

Post by Geri860 »

Figured out something.
The no reward dialog only happens if I add another quest besides the (exploreCircleReturn) to the questgiver, with a offer condition (like reach certain level) and if the explore quest is done before the other quest offer condition is met. However, these 2 quests are not connected like in the tutorial of yours.
Now, if I add the second quest with no offer condition, there is no reward dialog problem either, but there must be some limitations for the player.
User avatar
Tony Li
Posts: 21928
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Giver reward dialog won't show up when "Return" node is active

Post by Tony Li »

How can I reproduce that? Can you send a reproduction project to tony (at) pixelcrushers.com along with reproduction steps?

I tried the following:

1. Added the 'Food Delivery' quest to Quest Database 02 (which is assigned to Scene 02 Final's Quest Machine). This quest has an offer condition.

2. Added the 'Food Delivery' quest to the Quest Giver's list.

3. Played the scene. Picked up the 'exploreCircleAndReturn' quest.

4. Completed the quest and returned. It showed the final dialogue text for the 'exploreCircleAndReturn' quest. It did not show anything about 'Food Delivery' because its offer conditions aren't true yet.
Geri860
Posts: 8
Joined: Fri Sep 10, 2021 9:00 am

Re: Quest Giver reward dialog won't show up when "Return" node is active

Post by Geri860 »

"Maybe it's completing the Return To NPC node too early and immediately progressing to the Success state, or something like that."

That is the problem. I've tracked the players quest journal and quest editor state and as soon as I speak with the questgiver, it immediately transits to the success state

But this only happens if only one quest is currently active, and no other quest are offerable
I'll try to debug it a little more
User avatar
Tony Li
Posts: 21928
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Giver reward dialog won't show up when "Return" node is active

Post by Tony Li »

I wasn't able to reproduce the issue using the steps 1 - 4 that I listed above. Can you try the same thing?

And/or can you send me a reproduction project?
Geri860
Posts: 8
Joined: Fri Sep 10, 2021 9:00 am

Re: Quest Giver reward dialog won't show up when "Return" node is active

Post by Geri860 »

FOUND THE ISSUE

It had nothing to do with the Quest machine system but rather my stupid quest giver dialog popup activation solution.
So when I got close to the questgiver I made it to show like in the demo, like johann often needs help and to actually open the dialog, you have to press a button onscreen. What I not thought about is that the button click would register multiple times (multipurpose button to shoot, interact etc.)
When I pressed that button, it opens the dialog multiple times, so it refreshed it to show that he has no quest

Sorry for bothering you guys, but I hope that this will be a crutch for someone in the future!!!!
Last edited by Geri860 on Mon Sep 13, 2021 10:51 am, edited 1 time in total.
User avatar
Tony Li
Posts: 21928
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Giver reward dialog won't show up when "Return" node is active

Post by Tony Li »

Good catch! Thanks for sharing the issue resolution.
Post Reply