How can I force to save game before an important event

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
yuuri88
Newbie
Posts: 20
Joined: Fri Aug 02, 2019 11:58 am
Contact:

How can I force to save game before an important event

#1 Post by yuuri88 »

How can I force to save game before an important event. I tried to use $ renpy save but it needs (filename) and I don't know what is filename and can not difine a filename. :( :(

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: How can I force to save game before an important event

#2 Post by isobellesophia »

you can take a look at this, it may help you. The user had solved this problem.

https://www.reddit.com/r/RenPy/comments ... _save_etc/
I am a friendly user, please respect and have a good day.


Image

Image


yuuri88
Newbie
Posts: 20
Joined: Fri Aug 02, 2019 11:58 am
Contact:

Re: How can I force to save game before an important event

#3 Post by yuuri88 »

It's really helps me a lot THX!

yuuri88
Newbie
Posts: 20
Joined: Fri Aug 02, 2019 11:58 am
Contact:

Re: How can I force to save game before an important event

#4 Post by yuuri88 »

I'm asking another Ren'Py question ,how to let the game remeber value however it's return to title.

such as

$ bin = 0
default s1 = False
default s2 = False

label start:
"save after this"
$ purge_saves()
if bin >=2:
jump hai
"1":
jump sel1
"2":
jump sel2

label sel1:
$ bin += 1
$ s1 = True
"1"
return

label sel2:
$ bin += 1
$ s2 = True
"2"
return

label hai:
"here you comes the end"

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: How can I force to save game before an important event

#5 Post by isobellesophia »

yuuri88 wrote: Sun Aug 11, 2019 6:43 am I'm asking another Ren'Py question ,how to let the game remeber value however it's return to title.

such as

$ bin = 0
default s1 = False
default s2 = False

label start:
"save after this"
$ purge_saves()
if bin >=2:
jump hai
"1":
jump sel1
"2":
jump sel2

label sel1:
$ bin += 1
$ s1 = True
"1"
return

label sel2:
$ bin += 1
$ s2 = True
"2"
return

label hai:
"here you comes the end"

This one should help...

https://www.renpy.org/doc/html/save_loa ... after-load
I am a friendly user, please respect and have a good day.


Image

Image


Post Reply

Who is online

Users browsing this forum: Google [Bot]