Page 1 of 1
StartDialogue for a specific quest instance?
Posted: Thu Oct 17, 2019 4:14 am
by Passero
In my UI I list the different quests that are available, like a message board.
When I call StartDialogue on the quest giver, it gives me the list of quests but I don't want that as I already have preselected a quest.
So I'm wondering how I can start a dialogue with a quest giver for a specific quest?
Re: StartDialogue for a specific quest instance?
Posted: Thu Oct 17, 2019 8:37 am
by Tony Li
Hi,
I'll add that as an option in the next update.
Alternatively, you can make the message board into a Quest Giver, add the quests to it, and allow the message board to show the menu of quests like normal in Quest Machine. If you want it to have a different appearance, you can assign a custom quest dialogue UI to it.
Re: StartDialogue for a specific quest instance?
Posted: Thu Oct 17, 2019 9:16 am
by Passero
Any ETA on the update?
I can probably stick with a single quest per giver for the moment while I wait for the update. No need for me to change anything yet in the meantime.
Re: StartDialogue for a specific quest instance?
Posted: Thu Oct 17, 2019 9:24 am
by Tony Li
I'm trying to get a release out by the middle of next week.
Re: StartDialogue for a specific quest instance?
Posted: Thu Oct 17, 2019 11:14 am
by Tony Li
It looks like I can separate out the change. Here's a patch:
QM_QuestGiverPatch_2019-10-17.unitypackage
To use it, call the QuestGiver's StartSpecifiedQuestDialogueWithPlayer("questID") method, or StartSpecifiedQuestDialogue(GameObject player, string questID) if you have more than one player and need to specify which one.
Re: StartDialogue for a specific quest instance?
Posted: Thu Oct 17, 2019 11:25 am
by Passero
Awesome! Works like a charm!