Not saving a specific variable (with AC bridge)

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Not saving a specific variable (with AC bridge)

Post by Abelius »

Hi there,

I'm wondering if there's some way to exclude variables from being forwarded to Adventure Creator for being saved.

I ask this because I'm using several DS variables as 'internal game settings'. That is: I want them to keep their starting values in DS vars table fixed, no matter what their values were in previous player savegames.

Is there some way to mark specific variables to have this behavior?

If not, then I guess I'll need to put those vars elsewhere (as PlayMaker global vars, most likely) and overwrite their DS equivalents (which I need to run LUA scripts) each time a game is loaded.
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Not saving a specific variable (with AC bridge)

Post by Tony Li »

I'm afraid all variables are saved to Adventure Creator.

You could store your internal game settings in a Location element instead of a variable. Location data isn't saved unless you've ticked the Dialogue Manager's Persistent Data Settings > Include Location Data.
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Re: Not saving a specific variable (with AC bridge)

Post by Abelius »

No problem. I just wanted to make sure there's not a magical checkbox I've missed out. :P

I've already written some logic to sync selected DS vars to PM globals, and back to DS when loading a game. It works well, so apart from some additional work when adding another "setting" variable I don't expect problems with it.

Thanks for the reply! ;)
Unity 2019.4.9f1
Dialogue System 2.2.15
Post Reply