- Sep 30, 2017
- 2,348
- 4,920
Hi guys,
It's the RenPy Noob again.
I was wodering how Renpy is handeling the saving of objects.
So I have the following object.
I create an instance of that object like so
The problem comes that I change the filter property during the game and it stays there as long as the game is open.
However, once I save the game, if I reload that game, I lose the filter and the filter is set to 1 again.
Is it possible to save this object so that Renpy remembers the filter setting?
It's the RenPy Noob again.
I was wodering how Renpy is handeling the saving of objects.
So I have the following object.
Code:
init python:
class Person:
def __init__ (self, fname, lname, filter):
self.fname = fname # First Name for Characters
self.lname = lname # Last Name for Characters
self.filter = filter # Filter Character from bar
Code:
default Tjohn = Person("John","Doe",0)
However, once I save the game, if I reload that game, I lose the filter and the filter is set to 1 again.
Is it possible to save this object so that Renpy remembers the filter setting?