how can i know current game saved slot number?

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.
Post Reply
Message
Author
wtfman
Regular
Posts: 33
Joined: Sat Mar 30, 2013 7:26 pm
Contact:

how can i know current game saved slot number?

#1 Post by wtfman » Mon Jan 25, 2016 10:02 pm

sorry for my bad english, anyway i want know current game's saved slot number in game.

simply, i can click right button and find save data in slots. but it is not. i want input that current save slot number in variable

how can i do this?

wtfman
Regular
Posts: 33
Joined: Sat Mar 30, 2013 7:26 pm
Contact:

Re: how can i know current game saved slot number?

#2 Post by wtfman » Wed Jan 27, 2016 11:04 am

more details post. first i tried change screens.rpy file's button action in file_picker screen. like this

Code: Select all

                        button:
                            action [FileAction(i), SetVariable("Varname", i)]     # Varname is temporary name
                            xfill True
Varname's default is 1. it means save slot #1. i is save/load slot number. so, i thought when i save or load file, Varname is changed current saved/loaded slot's number(i). but it doesn't work. because that variable(Varname) is not saved in save file. i tried changing order like

Code: Select all

action [SetVariable("Varname", i), FileAction(i)]
it doesn't work too. cause that 'Varname' variable is not saved. same problem.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]