Creating Checkpoints before Battles and Key events

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
Sword of Akasha
Regular
Posts: 61
Joined: Sun Dec 14, 2014 6:51 am
Projects: Shadows of Shattered Dreams
Organization: Akashic Creative Studios
Deviantart: Sword-of-Akasha
Contact:

Creating Checkpoints before Battles and Key events

#1 Post by Sword of Akasha »

Deaths happens alot in my visual novel. Some of my play testers have been complaining that they don't like having to re-read too many sections when they forget to save. I want make the game autosave at certain points before deadly encounters.

I've tried adding this to the script and it doesn't work. I've tried it with screenshot set as False and True

Code: Select all

    $ renpy.force_autosave(take_screenshot=False)
Oddly enough the autosave works when I quit the game but not when I set a point in the script. I'd deeply appreciate if anyone has found a solution to this.
Image

User avatar
Taleweaver
Writing Maniac
Posts: 3428
Joined: Tue Nov 11, 2003 8:51 am
Completed: Metropolitan Blues, The Loyal Kinsman, Daemonophilia, The Dreaming, The Thirteenth Year, Adrift, Bionic Heart 2, Secrets of the Wolf, The Photographer
Projects: The Pilgrim's Path, Elspeth's Garden, Secret Adventure Game!
Organization: Tall Tales Productions
Location: Germany
Contact:

Re: Creating Checkpoints before Battles and Key events

#2 Post by Taleweaver »

Moved to Ren'Py Questions.
Scriptwriter and producer of Metropolitan Blues
Creator of The Loyal Kinsman
Scriptwriter and director of Daemonophilia
Scriptwriter and director of The Dreaming
Scriptwriter of Zenith Chronicles
Scriptwriter and director of The Thirteenth Year
Scriptwriter and director of Romance is Dead
Scriptwriter and producer of Adrift
More about me in my blog
"Adrift - Like Ever17, but without the Deus Ex Machina" - HigurashiKira

User avatar
Sword of Akasha
Regular
Posts: 61
Joined: Sun Dec 14, 2014 6:51 am
Projects: Shadows of Shattered Dreams
Organization: Akashic Creative Studios
Deviantart: Sword-of-Akasha
Contact:

Re: Creating Checkpoints before Battles and Key events

#3 Post by Sword of Akasha »

Anyone?
Image

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Creating Checkpoints before Battles and Key events

#4 Post by xela »

It should just work... unless you took specific measures that it doesn't previously in your code someplace (although I am not sure that forced autosave can be blocked like the normal autosave can).
Like what we're doing? Support us at:
Image

User avatar
Sword of Akasha
Regular
Posts: 61
Joined: Sun Dec 14, 2014 6:51 am
Projects: Shadows of Shattered Dreams
Organization: Akashic Creative Studios
Deviantart: Sword-of-Akasha
Contact:

Re: Creating Checkpoints before Battles and Key events

#5 Post by Sword of Akasha »

Much thanks for your reply. I appreciate it.

I did some testing and figured out that it doesn't save when you use auto forward. It does when you click through it.
$ renpy.choice_for_skipping()
This doesn't seem to save for auto forward either. Also it doesn't stop when skipping.

Is there way to stop auto forward when a player uses it? I intend the majority of players to use auto after setting it to their reading speed.
Image

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Creating Checkpoints before Battles and Key events

#6 Post by xela »

There are the bunch of posts you can use:

http://lemmasoft.renai.us/forums/viewto ... p+skipping

You may even stop skipping by restarting the interaction, there should be a whole bunch of ways to get it done.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot], Yone28