StartDialogue for a specific quest instance?

Announcements, support questions, and discussion for Quest Machine.
Post Reply
Passero
Posts: 32
Joined: Thu Jan 18, 2018 1:19 pm

StartDialogue for a specific quest instance?

Post 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?
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: StartDialogue for a specific quest instance?

Post 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.
Passero
Posts: 32
Joined: Thu Jan 18, 2018 1:19 pm

Re: StartDialogue for a specific quest instance?

Post 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.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: StartDialogue for a specific quest instance?

Post by Tony Li »

I'm trying to get a release out by the middle of next week.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: StartDialogue for a specific quest instance?

Post 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.
Passero
Posts: 32
Joined: Thu Jan 18, 2018 1:19 pm

Re: StartDialogue for a specific quest instance?

Post by Passero »

Awesome! Works like a charm!
Post Reply