Autolabelling for Save and Restore?
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.
- EwanG
- Miko-Class Veteran
- Posts: 711
- Joined: Thu Oct 26, 2006 5:37 pm
- Location: San Antonio, TX
- Contact:
Autolabelling for Save and Restore?
On the commerical VN's I've read/played, there is usually an ability to save a file at a particular page so you can start right back where you left off. In Ren'Py (at least from what I've seen in the demo code), it appears you have to set a label for a section to be able to restore to that point.
Is there something I'm missing (probably, which is why I'm asking here)?
Is there something I'm missing (probably, which is why I'm asking here)?
- dizzcity
- Veteran
- Posts: 311
- Joined: Thu Aug 17, 2006 10:51 am
- Projects: Lakeside Sunset, Wedding Vows, Working Woman
- Location: Singapore
- Contact:
Save and Load are used for returning to the exact spot in the game/novel. You have no worries there. It's already integrated. However, the name by which that save point will be called in the Saved Files menu is defined by the $ save_name=" " variable.
labels are used to divide your script up into sections for navigation. You can think of them as separate blocks to jump to after making choices in a menu. They're like different pages on a website. Everything under one label will be done in sequence.
(pseudocode)
-Dizzy-
labels are used to divide your script up into sections for navigation. You can think of them as separate blocks to jump to after making choices in a menu. They're like different pages on a website. Everything under one label will be done in sequence.
(pseudocode)
Code: Select all
For example, if you have a menu choice like:
What do I do today?
> Sleep and Eat (goes to label sleep_and_eat)
> Go out on a Date (goes to label go_on_date)
then each of those answers will take you to a separate section with their own labels.
label sleep_and_eat:
<everything that follows after the user has chosen to sleep and eat>
label go_on_date:
<everything that happens after the user has chosen to go on the date>A smart man follows the rules, a dumb man breaks them. A great man bends the rules and thus creates them.
Fanfiction.net Profile.
Writer and director of Working Woman (NaNoRenO March 2010)
Writer and director of Wedding Vows (finished 2009).
Creator of Lakeside Sunset (finished 2006).
Fanfiction.net Profile.
Writer and director of Working Woman (NaNoRenO March 2010)
Writer and director of Wedding Vows (finished 2009).
Creator of Lakeside Sunset (finished 2006).
Who is online
Users browsing this forum: No registered users
