Showing a Quest window instead of a Quest Dialogue

Announcements, support questions, and discussion for Quest Machine.
Post Reply
mightyBond
Posts: 11
Joined: Wed Sep 29, 2021 3:14 pm

Showing a Quest window instead of a Quest Dialogue

Post by mightyBond »

Hello!

I would like to ask if its possible that instead of the usual Quest Dialogue Window shown when giving a quest, it will just display a Quest Window that shows the Quest Name, Description, Rewards and then the accept button? And if so, how?
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Showing a Quest window instead of a Quest Dialogue

Post by Tony Li »

Hi,

That'll still be a quest dialogue window. What's different from the regular quest dialogue window? It sounds like the only difference is that it doesn't have Decline and Close buttons.

If you want a quest giver to show a differently-styled window (e.g., without Decline and Close buttons), you can create a new quest dialogue UI and assign it to the quest giver's UI Settings > Quest Dialogue UI field. If the quest giver has only one quest to offer, it will immediately show the quest's dialogue text (e.g., Name, Description, Rewards).
mightyBond
Posts: 11
Joined: Wed Sep 29, 2021 3:14 pm

Re: Showing a Quest window instead of a Quest Dialogue

Post by mightyBond »

Thank you for the prompt reply!

I see, looks like I misunderstood it. This is because in your tutorial videos I saw the NPC as the quest giver. The project I'm working on does not requires this, instead the quest window pops up at certain points of game, meaning I need to find a way to trigger quest dialogue window manually without NPC's. May I ask how can this be done?
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Showing a Quest window instead of a Quest Dialogue

Post by Tony Li »

Hi,

Does any GameObject have a Quest Giver component? It doesn't have to be an NPC in the traditional sense. It can even be an empty GameObject to hold the quest that will be offered. If so, call that QuestGiver component's StartDialogueWithPlayer() method.
mightyBond
Posts: 11
Joined: Wed Sep 29, 2021 3:14 pm

Re: Showing a Quest window instead of a Quest Dialogue

Post by mightyBond »

After skimming through the documentation I was able to pull it off, thank you very much!
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Showing a Quest window instead of a Quest Dialogue

Post by Tony Li »

Glad to help however much or little I did. Sounds you like got it all straightened out by yourself! :-)
Post Reply