Oh I see. Asceai was indeed correct, you do want persistent data. Persistent data "stays the same" through the game (even if you do not save) unless you manually change it. That means you'll want to do this:
Code: Select all
init -1 python hide:
# Check if list1 exists! If it doesn't, make it!
if persistent.list1 is None:
persistent.list1 = []
Now if you do $ persistent.list1.append("Satsuki"), Satsuki will be added to that table.
This brings up another problem though. What happens if the game gets played twice? Or three times?
Code: Select all
$ persistent.list1.append("Satsuki")
$ persistent.list1.append("Satsuki")#uh-oh...
$ persistent.list1.append("Satsuki")#OH GOD NO
#oh no, "Satsuki" is in the list three times!
So before having the game happily add "Satsuki" to the list...
Code: Select all
if "Satsuki" not in persistent.list1:
$ persistent.list1.append("Satsuki")#yay, unlocked!
You can see this in action in the attached demo script.