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.
I'm not a very good coder and I'm trying to understand more about permanent game data, such as variables which will stay there even when you restart the game and play again.
So each time the game starts up, the majority of variables reset and the game starts a new. However, I want to create some variables which stay permanent no matter how many times you play and I've never done that before...
I want to create another list called $ endings_unlocked = [] but I'm unsure where to put it. I'd the endings unlocked to stay permanently and only be removed if you delete/ uninstall the game. How do I do this?
Last edited by Kinmoku on Fri Jul 29, 2016 12:24 pm, edited 1 time in total.
I'm not a very good coder and I'm trying to understand more about permanent game data, such as variables which will stay there even when you restart the game and play again.
So each time the game starts up, the majority of variables reset and the game starts a new. However, I want to create some variables which stay permanent no matter how many times you play and I've never done that before...
I want to create another list called $ endings_unlocked = [] but I'm unsure where to put it. I'd the endings unlocked to stay permanently and only be removed if you delete/ uninstall the game. How do I do this?
So first off, let's look at the code you provided.
Before your game starts (in other words, before the start label, not in the start label) is when you declare your variables. So you should have this instead:
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
trooper6 wrote:Before your game starts (in other words, before the start label, not in the start label) is when you declare your variables. So you should have this instead: