how to make renpy save data from list?
Ex:
list = [0,1,2,3]
Now if a change list [0] = 3 and save. After i exit the game and load the save file, list [0] will be equal with 0 not 3, way?
And how to save a list after i change the value?
Save list problem
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: 14
- Joined: Fri Feb 13, 2015 9:17 am
- Contact:
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Save list problem
You can't create it in an init block. Also, list is a reserved name. But if you do:
And later on:
It'll just work.
Code: Select all
default my_list = [ 0, 1, 2, 3 ]
Code: Select all
$ my_list[0] = 3
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Newbie
- Posts: 14
- Joined: Fri Feb 13, 2015 9:17 am
- Contact:
Who is online
Users browsing this forum: Nozori_Games, voluorem