Page 1 of 1

Quest Machine Journal

Posted: Sun Oct 23, 2022 4:38 am
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

Re: Quest Machine Journal

Posted: Sun Oct 23, 2022 9:52 am
by Tony Li

Re: Quest Machine Journal

Posted: Sun Oct 23, 2022 12:32 pm
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.

Re: Quest Machine Journal

Posted: Sun Oct 23, 2022 12:41 pm
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

Re: Quest Machine Journal

Posted: Sun Oct 23, 2022 12:50 pm
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?

Re: Quest Machine Journal

Posted: Sun Oct 23, 2022 4:57 pm
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.

Re: Quest Machine Journal

Posted: Mon Oct 24, 2022 12:15 pm
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.

Re: Quest Machine Journal

Posted: Mon Oct 24, 2022 1:37 pm
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.

Re: Quest Machine Journal

Posted: Mon Oct 24, 2022 2:20 pm
by qest43
I sent an email

Re: Quest Machine Journal

Posted: Mon Oct 24, 2022 8:22 pm
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.