So, for example, I have a list with items in it. How can I unlock them using $persistent.smth = "unlocked"
class Dog():
def __init__(self,name,color,locked)
list = [Dog("Bark", "White", "locked"), Dog("Bork", "Brown", "locked")]
So basically, they'll be locked and at some point in the game you'll unlock them.
Persistent Data
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.
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.
-
- Newbie
- Posts: 9
- Joined: Sun Nov 04, 2018 12:02 am
- Contact:
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Persistent Data
Does this actually have to be persistent?
Persistent is to save data between entirely different game plays.
So for example, let's say we had a persistent.love_interest_dead variable.
And in your first play through, you did something to kill the love interest and you make persistent.love_interest_dead = true.
This means if you start a brand new game...then the love interest is dead.
Is that what you want? When your cousin starts a new game on your computer the love interest is still dead?
Or do you just want it saved within the one came you are playing?
Persistent is to save data between entirely different game plays.
So for example, let's say we had a persistent.love_interest_dead variable.
And in your first play through, you did something to kill the love interest and you make persistent.love_interest_dead = true.
This means if you start a brand new game...then the love interest is dead.
Is that what you want? When your cousin starts a new game on your computer the love interest is still dead?
Or do you just want it saved within the one came you are playing?
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?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*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?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
-
- Newbie
- Posts: 9
- Joined: Sun Nov 04, 2018 12:02 am
- Contact:
Re: Persistent Data
Yes, if I understood it correctly. I've like 5 different endings and if I start new game I need that glossary/tips to be opened after any of endings was completed already and then just append new tips to prev playthroughs(So it'll fill up the progress bar to 100% or smth like that).
- isobellesophia
- Miko-Class Veteran
- Posts: 979
- Joined: Mon Jan 07, 2019 2:55 am
- Completed: None
- Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
- Organization: Friendly Teachers series
- Deviantart: SophBelle
- itch: Child Creation
- Location: Philippines, Mindanao
- Contact:
Re: Persistent Data
Hi! You can just visit this site:
viewtopic.php?t=51990
This is where i copied the code in my game. (And it is really helpful and changed a bit on that screen.)
It is along with persistent data, or you can add any list you wanted.
Depends what kind of ending you have there, the list you wanted to add.
Hope i helped
viewtopic.php?t=51990
This is where i copied the code in my game. (And it is really helpful and changed a bit on that screen.)
It is along with persistent data, or you can add any list you wanted.
Depends what kind of ending you have there, the list you wanted to add.
Hope i helped
Who is online
Users browsing this forum: Ahrefs [Bot], ZianRiyone