Need some help with clearing database values & understanding UI text elements.
Posted: Sun Jan 09, 2022 9:18 pm
Greetings,
I've recently picked up Unity and grabbed the Dialogue System from the store to test out some ideas.
I am having two issues that are giving me a bit of a headache and wondered if somebody would be able to point me in the right direction.
I am using a combination of InventoryEngine, TopDownEngine and Dialogue System.
I have followed the tutorials on asset integration for boht but am not entirely sure if I have implemented things correctly.
Currently, when I start playing in editor - the journal and quest logs are stuck displaying data from a scene change save.
I would like to know how I can reset the database on start or even in a dialogue with an actor if possible - so that I can quickly reset all variables back to their inital state.
Additionally, if at all possible - would somebody be able to explain how I can quickly pull a variable from the stored database and display it as text on screen?
The tutorials I found for Unity UI seem to use scripting and custom classes to assign the relevant text but I am not sure how to go about creating a script that will allow me to access the variables in the database and display them as a text output.
Thanks for any help you can offer and sorry for the newbie questions.
My Dialogue managaer has the following attachments:
DialogueSystem TopDown Event Listener - Handle MM Save Load Events - Enabled.
Pause TopDown during conversations.
Inventory Engine Lua (Ondialoguemanager)
Inventory Script - Persistent - Enabled
DialogueSystem Inventory Event Listener - Update Quest Tracker - Enabled
For TopDownEngine Mangers > Inventories both are also set with Persistence Enabled.
in summary:
I can move between scene and using luacode to get items from inventory engine - carry my items and quest progress across.
I would like to be able to on this first 'testing stage' - quickly reset all saved dialogue system database variables and quest related entries to their default states.
I would like some tips on how to access my database text variables and display them using a Unity UI Text Component.
Thanks again.
I've recently picked up Unity and grabbed the Dialogue System from the store to test out some ideas.
I am having two issues that are giving me a bit of a headache and wondered if somebody would be able to point me in the right direction.
I am using a combination of InventoryEngine, TopDownEngine and Dialogue System.
I have followed the tutorials on asset integration for boht but am not entirely sure if I have implemented things correctly.
Currently, when I start playing in editor - the journal and quest logs are stuck displaying data from a scene change save.
I would like to know how I can reset the database on start or even in a dialogue with an actor if possible - so that I can quickly reset all variables back to their inital state.
Additionally, if at all possible - would somebody be able to explain how I can quickly pull a variable from the stored database and display it as text on screen?
The tutorials I found for Unity UI seem to use scripting and custom classes to assign the relevant text but I am not sure how to go about creating a script that will allow me to access the variables in the database and display them as a text output.
Thanks for any help you can offer and sorry for the newbie questions.
My Dialogue managaer has the following attachments:
DialogueSystem TopDown Event Listener - Handle MM Save Load Events - Enabled.
Pause TopDown during conversations.
Inventory Engine Lua (Ondialoguemanager)
Inventory Script - Persistent - Enabled
DialogueSystem Inventory Event Listener - Update Quest Tracker - Enabled
For TopDownEngine Mangers > Inventories both are also set with Persistence Enabled.
in summary:
I can move between scene and using luacode to get items from inventory engine - carry my items and quest progress across.
I would like to be able to on this first 'testing stage' - quickly reset all saved dialogue system database variables and quest related entries to their default states.
I would like some tips on how to access my database text variables and display them using a Unity UI Text Component.
Thanks again.