Forum rules - please read before posting.

How to link element into a diary system

Hi everyone,

First of all I have done the tutorial about the Diary system and i think that i undestood the concept. However i still have some questions.
The idea is to make a diary with two tab.
The first one is a simple menu with a texture ( MAP) and two buttons (close menu and change Tab) like you can see on this screen : https://ibb.co/p02V54x

The second tab is where I would like to add texts and images to the diary during the adventure.
But this is where I'm lost, I don't know how to tie the pieces together.
This is the UI taht i made and his inspector :
https://ibb.co/QXDZ2T2

Inspector : https://ibb.co/Nnsmkmp

How I can link texts and images to elements declared in my UI?
The only thing that works is adding the pages to the journal.

PS: i don't care for now if it's a one or two diary page.

I hope I have been clear enough in my explanations.

Thanks for the help in advance.

++

Comments

  • Are you having trouble flipping between the two tabs, or just with syncing images with diary pages in the second tab?

    Journals and Documents in AC are text-only, but you can associate images with pages by using this script on the AC wiki:

    https://adventure-creator.fandom.com/wiki/Adding_images_to_documents_and_journals

    You'll need to gather up your text in the Speech Manager first, but you'll then be able to assocate textures with line IDs, which can then be used to update a Graphic element based on the open page.

  • Hi,

    Only syncing text and image with the diary pages on second Tab.
  • The wiki script should do what you need, then. Let me know if you need help setting things up, though.

  • Hi,

    Long time since your answer, i follow all the septs but when i tried to connect my page texture to the page's ID number nothing happend.

    the idea is to add a texture when i click on an hotspot. Below the inspector and AC Editor

    https://goopics.net/i/0JXO2
    https://goopics.net/i/xOjLj
    https://goopics.net/i/ZEDLG

    Can you tell me what's wrong?

  • edited October 2020

    Your Journal element is named "Journal", but you've got it configured as "PageText" in the component Inspector.

    If you still have trouble, please share uncropped screenshots of your Menu, as well as the source of "page2".

  • Indeed, I modified and everything is fine now!

    Thanks for your help

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.