Page 1 of 1

Not saving a specific variable (with AC bridge)

Posted: Wed May 30, 2018 10:11 am
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.

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

Posted: Wed May 30, 2018 1:16 pm
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.

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

Posted: Wed May 30, 2018 1:52 pm
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! ;)