Page 1 of 1

Can't open Quest Journal

Posted: Fri Feb 25, 2022 4:26 pm
by will_888
Hello! I've got a problem with the Quest Journal.

I've got this scene where everything works properly.

The Quest Machine prefab is present in the scene.
The "Instantiate Prefabs" includes the quest log prefab.
Therefore, when I press "J" the Quest Log opens as it should be.

However, in another scene, with the same exact setup (I've duplicated the scene), the "J" buttons doesn't do anything. I'm checking in the DestroyOnLoad section in the scene and the Quest Log does spawn, but it is deactivated, and nothing happens when I press "J". I honestly don't know what I'm doing wrong! Can you help me? Thank you so much in advance :)

Re: Can't open Quest Journal

Posted: Fri Feb 25, 2022 7:02 pm
by Tony Li
Do you want "J" to open the Dialogue System's quest log window or Quest Machine's quest journal UI?

Since you mentioned Quest Machine, I'll assume you're using Quest Machine's quest stuff and want to open Quest Machine's quest journal UI. One way to do this is to add a UI Button to your scene. Add a QuestJournalButton component to the Button's GameObject. Configure the Button's OnClick() event to call QuestJournalButton.ToggleJournalUI.

Re: Can't open Quest Journal

Posted: Mon Feb 28, 2022 3:52 am
by will_888
Thanks for your answer!

Sorry, my bad. I used Quest Machine in the past and got confused. I'm NOT using Quest Machine now for this project, just the Dialogue System

I was talking about the Quest Log and Quest Journal Prefab

So, please consider my question again, thanks

Re: Can't open Quest Journal

Posted: Mon Feb 28, 2022 10:06 am
by Tony Li
Hi,

Try adding a Quest Log Window Hotkey component to your Dialogue Manager. Configure it to listen for the "J" key. You don't need any other Quest Log Window Hotkey components. The one on the Dialogue Manager will find the quest log window and open/close it.

Re: Can't open Quest Journal

Posted: Mon Mar 28, 2022 10:25 am
by will_888
Thank you so much! This solved everything. :)

Re: Can't open Quest Journal

Posted: Mon Mar 28, 2022 1:14 pm
by Tony Li
Happy to help!