Data reset for build

Posted: 27 Feb 2023 12:17
by TuTlo

Hi,

I am wondering is there a way to reset all data (custom variable to initialized value, unlock all Unlockables)?

I test playing the game in Unity editor, and after building, some of the global variables (Unlockables) did not reset to initialized value as defined in Custom Variables.

I would like to ask about is there some setting in building or in Naninovel configs to reset all data for building?

Thanks a lot!


Re: Data reset for build

Posted: 28 Feb 2023 08:28
by idaot

Unlockables are not to be confused with custom variables, Unlockables have their own configuration (https://naninovel.com/guide/unlockable-items.html#unlockable-resources) They will be defaulted to locked in a clean game build and their state can be changed with @unlock and @lock commands (and their associated C# functions found in IUnlockableManager)

Any save data stored in the editor won't carry over to the build.