Quest Machine Journal

Announcements, support questions, and discussion for Quest Machine.
Post Reply
qest43
Posts: 33
Joined: Thu May 26, 2022 9:22 am

Quest Machine Journal

Post by qest43 »

Hey, I want to have quest journal in one of the tab menu. How can I move Quest Journal to be a part of this system, and not be an popup window? I want this quest journal be always shown in quest tab when we are there.

Image
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine Journal

Post by Tony Li »

qest43
Posts: 33
Joined: Thu May 26, 2022 9:22 am

Re: Quest Machine Journal

Post by qest43 »

Yes it works, I have problem with assigning quest to player, I do it via script of Dialogue Manager. I added Quest Giver script to a NPC and I added Quest to Quests list there, but when I add quest from the script I got an error:
Quest Machine: NPC.GiveQuestToQuester - quester (QuestListContainer) is null.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine Journal

Post by Tony Li »

Hi,

Does your player have a Quest Journal component? Make sure to pass the player GameObject with the Quest Journal component.

Here's another way to give a quest to a quester (player):

How To: Start Quest From Script
qest43
Posts: 33
Joined: Thu May 26, 2022 9:22 am

Re: Quest Machine Journal

Post by qest43 »

Yes! That actually works. i have another question, how can I assign Quest Journal UI to Quest Machine in another way, because my QuestUI Prefab is in tabsystem prefab so they can't communicate in way when I can drag it there, can I assign it from script somehow or there is another solution?

And how can I use keyboard for navigate quest journal UI, I use Dialogue System too and when I add InputDeviceManager component to Quest Machine GameObject, Dialogues doesnt want to trigger?

Can I change quest journal UI to text mesh pro?
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine Journal

Post by Tony Li »

qest43 wrote: Sun Oct 23, 2022 12:50 pmi have another question, how can I assign Quest Journal UI to Quest Machine in another way, because my QuestUI Prefab is in tabsystem prefab so they can't communicate in way when I can drag it there, can I assign it from script somehow or there is another solution?
You can assign it in script by assigning QuestMachine.defaultQuestJournalUI:

Code: Select all

QuestMachine.defaultQuestJournalUI = YourJournalUI;
or assign it to the player's Quest Journal component in the inspector or in a script.
qest43 wrote: Sun Oct 23, 2022 12:50 pmAnd how can I use keyboard for navigate quest journal UI, I use Dialogue System too and when I add InputDeviceManager component to Quest Machine GameObject, Dialogues doesnt want to trigger?
Don't add another InputDeviceManager. The Dialogue System already has one, and there can only be one in a scene. Instead, inspect the Dialogue Manager's InputDeviceManager and tick Always Auto Focus.
qest43 wrote: Sun Oct 23, 2022 12:50 pmCan I change quest journal UI to text mesh pro?
Yes. It's the exact same process as DS: TextMesh Pro Support.
qest43
Posts: 33
Joined: Thu May 26, 2022 9:22 am

Re: Quest Machine Journal

Post by qest43 »

When I have QuestJournalUI on standard canvas in QuestMachine, and assigned this Journal prefab to QuestJournalUI serialized field, quests are showed on Quest Journal. But when I Put Journal UI In my Own Menu, and I assign this journal via script:

Code: Select all

        [SerializeField] private UnityUIQuestJournalUI UnityUIQuestJournalUI;

        public void Start()
        {
            QuestMachine.defaultQuestJournalUI = UnityUIQuestJournalUI;
        }
this quests are not showing in this journal then.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine Journal

Post by Tony Li »

Hi,

That should work. But you could alternatively try assigning your journal UI to the player's QuestJournal instead.

If that doesn't help, please send a reproduction project to tony (at) pixelcrushers.com.
qest43
Posts: 33
Joined: Thu May 26, 2022 9:22 am

Re: Quest Machine Journal

Post by qest43 »

I sent an email
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine Journal

Post by Tony Li »

Hi,

Thanks for sending the repro project. I replied to your email. If you don't see it, please check your spam folder.
Post Reply