renpy.full_restart
Function: renpy.full_restart( | ) |
This causes a full restart of Ren'Py. This clears the store and configuration, and re-runs init blocks before branching off to the start label. It's very close to what happens when we quit out and re-run the interpreter, except for some caches not being cleared.
Example
'The author would like to thank everyone who makes original English-language bishoujo games, and the people on the Lemmasoft forums who encouraged him.' "We can't wait to see what you do with this. Good luck!" $ minutes, seconds = divmod(int(renpy.get_game_runtime()), 60) "It took you %(minutes)d minutes and %(seconds)d seconds to finish this demo." $ renpy.full_restart()