Hi!
I have set up a local variable in a scene and set it as an integer. During conversation, it goes up by +1 to count the dialogue options used in order to load a custom line once you've gone through all options for the conversation.
This all works, however if I have a save where the integer is 0, go through the conversation so the integer ends up at e.g. 4, and then load the save prior to having this conversation, the integer doesn't reset back to 0 but stays at 4.
Is this by design and I'm not just using this variable as intended?
Cheers!
Comments
Save file is in the same scene.
Unity version: 5.4.1f1
AC: 1.54c
PC platform, and this happens in the editor, haven't tested in build yet but can if it's of interest.
Seems to be working as intended now.
I've set up a series of events via an ActionList, that will towards the end set on object to invisible and one object to visible. To do this, I've assigned "remember visibility" scripts to both items.
The action script runs and the "Object: Visibiltiy" ActionList items run as expected. Item A becomes invisible, and Item B becomes visible. After the ActionList is completed, if I load a saved game from just before the list was ran, Item A is still invisible and Item B is visible.
The obsurd thing is that I have the same types of things set up in multiple places thoughout my game and it's not showing this issue. Just with these two items.
I've tried deleting them and recreating but the issue remains.
I'm not even sure how this would be recreated given above.
Tried moving the actionlist from a trigger to a hotspot but didn't make any difference.
UPDATE:
Since the last time I created action lists similar to above, I had changed the save game files from "Date Only" to "Time and Date" - changing this back made object visibility work properly when re-loading a scene.
"Remember Transform" does however not seem to work - so I teleported a character in, had it move to a point, then set it to invisible, re-load the same scene, character is still stading where he moved to before becomming invisible. I can work around that however by instead of making the character invisible, teleport him off scene at the end of the action list.
Can you create a duplicate of this scene and remove all graphics / geometry except the two problematic RememberVisibility / Transform objects, and the ActionList that changes them? Assuming running that ActionList manually still causes the issue, PM me the scene file together with your Managers as a single .unitypackage file and I'll look into it.