Page 1 of 1

Can't accept quest within dialog

Posted: Mon Dec 06, 2021 3:40 pm
by junwi21
I have a custom dialog ui prefab / script that im using.

I try calling questGiver.GiveQuestToQuester(quest, questGiver.id); when the accept button is pressed, however when i continue the conversation with the NPC, the quest is still not marked as active (the conversation should branch depending on whether or not the quest was accepted.

However, when i talk to the NPC again right after, the check for the quest marked active is true as he gives the dialog he's supposed to give when the player has accepted the quest.

Why is the quest not being accepted immediately during the initial dialog?

Re: Can't accept quest within dialog

Posted: Mon Dec 06, 2021 4:53 pm
by Tony Li
Hi,

If the conversation is checking the quest state in the very next node, please see: Conversations Evaluate Conditions One Extra Level Ahead.

Re: Can't accept quest within dialog

Posted: Mon Dec 06, 2021 5:41 pm
by junwi21
Thanks, can you tell me why it's not being added to the player's quest journal though?

Re: Can't accept quest within dialog

Posted: Mon Dec 06, 2021 8:12 pm
by junwi21
It's in the quest database and the questgiver's list

Re: Can't accept quest within dialog

Posted: Mon Dec 06, 2021 8:30 pm
by Tony Li
Try specifying the quester (the player), not the quest giver, in QuestGiver.GiveQuestToQuester. For example:

Code: Select all

questGiver.GiveQuestToQuester(quest, payerQuestJournal.id);
If that doesn't fix it, check the Console window for any errors or warnings.