I have a 'notepad' within the game allows the player to write down any notes they may wish to make.
The issue I'm having is that I can't get their notes to actually save when a game is loaded.
I've read this here: https://adventurecreator.org/tutorials/saving-custom-global-data but I'm not sure how I'd integrate this in my case because how do I link the InputField section of my menu to a global string?
Any advice on how to do this would be much appreciated.~~~~
I'm using AC 1.84.2 and Unity 6000.1.11f1.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can use the Variable: Set Action to transfer the Input element's value to a String variable, by way of the Set As Menu Element Text option.
Thanks Chris.
I've tried that but it still doesn't save the input from the user.
Here's my actionlist that runs when the notepad is closed by clicking a 'close' button:
The menu name and element are correct. All actionlists are set to run in background and there's nothing blocking the game from saving.
The console gives a confirmation that the autosave has been saved but it still doesn't load it up if the game is exited and restarted. It works from the Load option on the main menu though if I load it up WITHOUT exiting the application.
EDIT: Fixed! To those who may experience this issue, I added an 'update content' to the OnLoad actionlist as below:
I'm not sure if this is the official way of doing this, but it works!