Can't accept quest within dialog
Posted: Mon Dec 06, 2021 3:40 pm
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?
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?