Customizing Save/Load file slot text. [Solved]

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
User avatar
Maelstrom-Fenrir
Regular
Posts: 139
Joined: Sat Feb 25, 2012 3:09 am
Completed: Shadow on the Bridge, Time Labyrinth
Projects: Porcelain Heart, Umbra
Organization: Black Witch Project
Skype: Maelstrom-Fenrir
Location: USA
Contact:

Customizing Save/Load file slot text. [Solved]

#1 Post by Maelstrom-Fenrir » Fri May 03, 2013 2:05 pm

Basically what I want to do is get so the save slots display "The slot number, Time of Save, Date ingame, Current Scene, and Route."

Image

I can get it to display the ingame date, and so on. But the problem is it only pulls it up based on what the variable currently is. So if you click "load/save" on day 1, all the files will say Day 1, if you click on day 2, all of the files will say Day 2, or if you click load from the menu, they say nothing. Which ruins the point of what I wanted to do.

Is it possible to set a variable's value to be saved with the save? Or is my desire just a fantasy?
Last edited by Maelstrom-Fenrir on Sat May 04, 2013 8:59 am, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Customizing Save/Load file slot text.

#2 Post by Alex » Fri May 03, 2013 3:40 pm

You can set the save_name variable value, like

Code: Select all

label chapter_1:
    $ save_name = "Day 1. Chapter one."
    code code code
    $ save_name = "Day 2. Chapter one."
http://www.renpy.org/doc/html/save_load ... -variables

User avatar
Maelstrom-Fenrir
Regular
Posts: 139
Joined: Sat Feb 25, 2012 3:09 am
Completed: Shadow on the Bridge, Time Labyrinth
Projects: Porcelain Heart, Umbra
Organization: Black Witch Project
Skype: Maelstrom-Fenrir
Location: USA
Contact:

Re: Customizing Save/Load file slot text. [Solved]

#3 Post by Maelstrom-Fenrir » Sat May 04, 2013 8:59 am

It works just like I want.

Thank you so much Alex.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]