Hi guys,
I'm new to AC, and I would like you to help me with something because I'm unsure how to get it right. I followed this tutorial https://adventurecreator.org/tutorials/creating-diary-system and created a Journal menu for my game, and everything functions well. However, when I create documents in the Inventory settings, they don't appear in my Journal menu when the player collects them.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @Dann.
Though the two are related, you're dealing with AC's separate Documents and Journal systems here.
A Journal element defined in a Menu is a collection of pages that you define there in the Menu Manager. It's dynamic - you can add more pages to it at runtime using the Menu: Change state Action - but that element is only for that Journal.
A Document, defined in the Inventory Manager, is a way of re-using the same element in a Menu for different documents. For example, the Player could find a diary, or a letter, and they'd each be a different document that's displayed in the same element in your Menu.
If you're just looking to add more pages to a single Journal, use Menu: Change state. Otherwise, set your Journal's Journal type to Display Active Document, the Menu's Appear type to On View Document, and use the Document: Open Action to display it when the Player encounters it.
I appreciate your help, Chris. Using Menu: Change state Action solved the issue. How do I make the escape key close the Journal menu and Inventory?
Use Active Inputs - they let you run ActionLists when an input is detected.
Open up the Active Inputs from the AC section of the top toolbar, and create one linked to the "Menu" input (an input created by AC upon installation, that's mapped to the Escape key). Define an ActionList, and have it run the Menu: Change state Action to turn off the Menu(s).
Worked. Thank you xD