Hi,
I have basic replay gallery that allows replaying certain labels that have been already seen via "action Replay("event)" .
AFAIK screen language/or that particular example has to use persistent data and because of that, each next playthrough will have everything unlocked(or rather everything player saw in last playthrough).
My question is, what would be cleanest way to make replay buttons locked back whenever player starts new game? (Visible but grayed out ofcourse)
I tried using action Replay("EventTest", locked=persistent.TestFlag) and setting default variable to False, having it being changed to True at the end of chosen label but no matter what, label remained pernamently unlocked. (I have yet to try clearing my Renpy cache completely but regardless I think it should work in new game, as variable is being set to False/True but it didn't) It was recommended to me to try that and maybe I just don't know about something regarding persistent values.
Thanks to the idea of folks I know that I could make something like question at the start of the game/option in Settings that would clear all persistent data but it would prevent something like having latest build save-file and launching new game to check different routes or would require shuffling files from player's side so I keep it at the last resort. Plus it would possibly reset sound/any option player has changed in Settings.
Thanks in advance.
I have basic replay gallery that allows replaying certain labels that have been already seen via "action Replay("event)" .
AFAIK screen language/or that particular example has to use persistent data and because of that, each next playthrough will have everything unlocked(or rather everything player saw in last playthrough).
My question is, what would be cleanest way to make replay buttons locked back whenever player starts new game? (Visible but grayed out ofcourse)
I tried using action Replay("EventTest", locked=persistent.TestFlag) and setting default variable to False, having it being changed to True at the end of chosen label but no matter what, label remained pernamently unlocked. (I have yet to try clearing my Renpy cache completely but regardless I think it should work in new game, as variable is being set to False/True but it didn't) It was recommended to me to try that and maybe I just don't know about something regarding persistent values.
Thanks to the idea of folks I know that I could make something like question at the start of the game/option in Settings that would clear all persistent data but it would prevent something like having latest build save-file and launching new game to check different routes or would require shuffling files from player's side so I keep it at the last resort. Plus it would possibly reset sound/any option player has changed in Settings.
Thanks in advance.