Why when I start game variables do not reset?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Luxliev
Veteran
Posts: 242
Joined: Sat Feb 07, 2015 11:01 am
Soundcloud: Luxliev
Contact:

Why when I start game variables do not reset?

#1 Post by Luxliev »

Whenever I start game after it ends I find that variables do not reset. Do I need to type specific command? Why this happens?

Code: Select all

$renpy.full_restart()
Doesn't do anything.
Newest classical cover: Advance Wars - Sami Theme: https://www.youtube.com/watch?v=657Jt7hJRVc

Forum with my music: http://luxliev.proboards.com/

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Why when I start game variables do not reset?

#2 Post by Imperf3kt »

Are you using something like

Code: Select all

$ cheeseburger = True
or

Code: Select all

$ persistent.cheeseburger = True
The second one is, as the name suggests, 'persistent' - it will never reset or change unless you tell it to, even when beginning a new game.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users