# Sets EVERY boolean persistent flag to True and marks all replay labels as seen. # Install: put in game/ and relaunch. Uninstall: delete the file. init 999 python: UNLOCK_ALL_ENABLED = True # Flags to force to True even if they don't exist yet in persistent. UNLOCK_ALL_EXTRA_FLAGS = [ "nightclubVeryTiredBoyUnlocked", ] def _unlock_all_flags(): for name in UNLOCK_ALL_EXTRA_FLAGS: setattr(persistent, name, True) for k in list(persistent.__dict__.keys()): if k.startswith("_"): continue # skip Ren'Py internals try: if getattr(persistent, k) is False: setattr(persistent, k, True) except Exception: pass def _unlock_all_replays(): # Replay() buttons need the label to count as "seen". try: item_class = PhoneJournalReplayItem except NameError: return for v in list(renpy.store.__dict__.values()): if isinstance(v, (list, tuple)): for i in v: if isinstance(i, item_class): try: renpy.mark_label_seen(i.replay_label) except Exception: pass def _unlock_all(): if not UNLOCK_ALL_ENABLED: return _unlock_all_flags() _unlock_all_replays() renpy.save_persistent() # After defaults on every new game/load, so nothing can reset the flags. config.after_default_callbacks.append(_unlock_all) # And once at the end of init. _unlock_all()