Quest Indicator UI

Announcements, support questions, and discussion for Quest Machine.
Post Reply
User avatar
CamperJohn
Posts: 14
Joined: Sun Apr 05, 2020 7:01 pm
Contact:

Quest Indicator UI

Post by CamperJohn »

I'm trying to replace the supplied 2d quest indicator exclamation mark with a 3d one that I created. I made it into a prefab and according to the tooltip, a prefab should be able to be used. But it will not allow me to drag and drop my prefab into the field. Just wondering if there is else I need to do.
indicator.jpg
indicator.jpg (36.98 KiB) Viewed 729 times
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Indicator UI

Post by Tony Li »

Hi,

The Quest Indicator Manager's Quest Indicator UI field needs to point to a GameObject or prefab that has a Quest Indicator UI component.

Here are the steps I recommend:

1. Add the prefab Assets / Plugins / Pixel Crushers / Quest Machine / Prefabs / Quest Indicator UI as a child of your NPC's Quest Indicator Manager GameObject:

qmCustomIndicator1.png
qmCustomIndicator1.png (211.99 KiB) Viewed 726 times

The Quest Indicator UI prefab has a number of child GameObjects. Each one is an indicator that will be shown depending on the quest state. For example, if the NPC can offer a quest, it will activate the 'Offer' child GameObject. If the NPC has an offerable quest but the player doesn't meet the offer conditions yet, it will activate the 'Offer Disabled' child instead.

2. Remove whichever child GameObject you want to replace. (You may need to right-click on the prefab and select Unpack Prefab to be able to delete children.) Add your 3D exclamation mark in its place. In the example below, I removed the 'Offer' GameObject and added 'MY 3D OFFER PREFAB' in its place:

qmCustomIndicator2.png
qmCustomIndicator2.png (18.39 KiB) Viewed 726 times

Then assign it to the Quest Indicator UI component:

qmCustomIndicator3.png
qmCustomIndicator3.png (19.96 KiB) Viewed 726 times

3. Inspect the NPC's Quest Indicator Manager component. Assign the Quest Indicator UI child. Then give it a play.

Optional: Once you've confirmed that it works, you can save your customized Quest Indicator UI as a new prefab. Then delete it from the NPC and assign your new prefab to the Quest Indicator Manager instead.
User avatar
CamperJohn
Posts: 14
Joined: Sun Apr 05, 2020 7:01 pm
Contact:

Re: Quest Indicator UI

Post by CamperJohn »

Your solution worked perfectly. Thanks for the quick response. Now to work on the animation.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Indicator UI

Post by Tony Li »

Great! Happy to help.
Post Reply