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.
$ persistent.ch00 = False
$ persistent.k_ch01 = False
# Character routes
init python:
chapters = [
("kadin_route"),
("richard_route"),
("romeo_route"),
]
# Splash screen
label splashscreen:
show logo splash_screen
with dissolve
with Pause (2)
# Default music and sound volumes
python:
if not persistent.set_volumes:
persistent.set_volumes = True
_preferences.volumes['music'] *= .70
_preferences.volumes['sfx'] *= .80
# You could also set 'sfx' and 'voice'.
return
# The game starts here.
label start:
##########
# Prologue: Ice Pack Emergency
label prologue:
$ persistent.ch00 = True
scene chp prologue
with fade
pause 3.0
And this is where my chapters list is from chapters.rpy:
The built-in replay function does what you describe. It might be more suitable if you intend for the chapter menus to be more of a scene gallery and not a mechanism for the player to jump forward in the main script.
saguaro wrote:The built-in replay function does what you describe. It might be more suitable if you intend for the chapter menus to be more of a scene gallery and not a mechanism for the player to jump forward in the main script.
I ended up solving the problem myself yesterday and was too happy with the result I forgot to post it on here. But basically it was similar to what both of saguaro and OokamiKasumi suggested. And now it works perfectly the way I want it to. ^^ Thank you so much for your help!