and i want that if i create new game all the persistent data will be deleted except the persistent data on the save game. or should i say when create new game, the game will restart like you back to zero but save game should not be deleted. sorry for the bad english
for short, i want to make multiple user.
hope someone understand my thought
and thanks for the help.
this is the code on screen rpy:
Code: Select all
init python:
def newGame(*args, **kwargs):
persistent._clear(True) ####is there a function that i could use on this? ####
renpy.run(Start(*args, **kwargs))
def NewGame(*args, **kwargs): return Function(newGame, *args, **kwargs)
def NewGame(confirm=True, message=_("Do you want to create New Game.{p}Do you want to continue?")):
action = Function(newGame)
if confirm:
action = Confirm(message, action)
return action
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
style_prefix "main_menu"
add gui.main_menu_background
## menu buttons code here