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.
-
Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
-
Contact:
#16
Post
by Remix » Mon Sep 03, 2018 6:01 am
Code: Select all
label before_main_menu:
if not persistent.seen_prologue:
$ renpy.jump_out_of_context("prologue")
return
label prologue:
"1"
"2"
"3"
if not persistent.seen_prologue:
$ persistent.seen_prologue = True
$ renpy.call_in_new_context("_main_menu")
return
label start:
"Start"
"Middle {a=call:prologue}read prologue again{/a}"
"End"
return
If I read your requirements correctly, that should do the trick.
-
Coren
- Mindscrew Driver
- Posts: 1691
- Joined: Fri Sep 18, 2009 9:24 am
- Completed: Dear Mariko, Six Rules, Ribbon of Green, RE: Prince of Nigeria, Doppelganger, Cole's Gate Demo, Crimson Rafflesia Demo, Mica: Apoptosis Demo
- Projects: Crimson Rafflesia, Mica: Apoptosis, Fantasy Euthanasia
- Organization: Soyasushi Productions
- Tumblr: CorenBaili
- Deviantart: CorenB
- Skype: coren.baili
-
Contact:
#17
Post
by Coren » Mon Sep 03, 2018 10:39 am
Hmm, I tried that and I can't call the save screen during the prologue. I'm familiar with persistent switches, I'm just hoping to be able to allow the player to save during the prologue so they don't feel obligated to finish it in one sitting

-
Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
-
Contact:
#18
Post
by Remix » Mon Sep 03, 2018 1:22 pm
Strange, it works fine for me on 7.1.0.795.
What code are you using?
Which Ren'Py version?
-
Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
-
Contact:
#19
Post
by Donmai » Mon Sep 03, 2018 3:02 pm
-
Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
-
Contact:
#20
Post
by Remix » Mon Sep 03, 2018 3:08 pm
My version uses that (which incidentally runs in the same context as main menu so does not allow saves/right click)
then jumping out of context (to allow saves etc)
in the prologue label (which then sets the persistent so you can access main menu without before_main_menu doing its thing again)
Seems a logical way to approach the problem.
-
Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
-
Contact:
#21
Post
by Donmai » Mon Sep 03, 2018 3:30 pm
Ah, didn't see your post. Sorry.
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#22
Post
by Imperf3kt » Mon Sep 03, 2018 8:13 pm
Remix wrote: ↑Mon Sep 03, 2018 3:08 pm
My version uses that (which incidentally runs in the same context as main menu so does not allow saves/right click)
then jumping out of context (to allow saves etc)
in the prologue label (which then sets the persistent so you can access main menu without before_main_menu doing its thing again)
Seems a logical way to approach the problem.
Which is what I assumed the main_menu label existed for, but apparently not.
Is that just an oversight I made, or is it an error in the documentation, do you think?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Users browsing this forum: Bing [Bot], Google [Bot], Ocelot, zyric