Forum rules - please read before posting.

Saving ActionListAsset Parameters to Save file?

Hello. I've been setting up the Save system for my game. For some things I use Action List parameters to determine the routes of some Action List Assets. But so far my tests indicate that the changed value of the parameters is not saved to the save file.

For testing, I'm using a simple Hotspot with an ActionList asset as its interaction. The action list has a boolean parameter set to false as default. When interacting with the Hotspot for the first time, I send a message to the console indicating that I interacted with it one time and then change the parameter's value to true. Any subsequent interactions send another message to the console indicating that the parameter's value was already true. If I go back to the main menu, the game is saved. There, I have a 'New Game' button that overwrites the save file. If I do that and interact with that Hotspot, the message in the console indicates the parameter was already true. If I save the game again and close the Unity editor and open it again, but this time I click 'Continue' on my main menu, the message in the console after interacting with the Hotspot indicates the parameter value was changed from false to true. So it was not saved.

Are ActionList asset parameters not supported to be used this way? Should I use component variables instead?

I'm on AC version 1.74.2

Comments

  • Partially.

    The Remember ActionList Parameters component can be used to save ActionList parameter values, but this can't be attached to ActionList asset files directly.

    What you can do, however, is attach it to a Cutscene whose Actions source has been set to Asset File, and then have it reference the asset.

    This will only affect that instance of the asset, however - you'd need to run the Cutscene, rather than the asset directly, for it to have an effect.

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.