Hello, I'm new to ren'py and i've been meaning to ask,
How do you create a route that unlocks only when all of the other routes have been played?
(i.e. There are four routes, route a, b,c, and d, and route d can only be played once the player has completed routes a,b, and c)
and if possible, kindly specify the code itself? (My only programming experience involves Javascript and HTML+CSS web development so i'm not really good when it comes to the python based ren'py engine...
Thank you in advance...
route that unlocks when all of the other routes are complete
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.
Re: route that unlocks when all of the other routes are comp
Code: Select all
if all([a, b, c]):
# show route d option.
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Re: route that unlocks when all of the other routes are comp
I can elaborate on xela's proposal:
You need to put this pieces of code in the correct place, not all together as in my example.
Code: Select all
label start:
$ a, b, c, d = False, False, False, False
$ show_d = False
label end_route_a:
$ a = True
label end_route_b:
$ b = True
label end_route_c:
$ c = True
# checking endings:
if all([a, b, c]):
$ show_d = True
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
- Seiza
- Regular
- Posts: 28
- Joined: Sun Nov 09, 2014 4:50 am
- Projects: The Cruel Fate of War
- Tumblr: Cj2ymail
- Location: Philippines
- Contact:
Re: route that unlocks when all of the other routes are comp
Thank you so much! After trying the code and putting the pieces in the right place i was finally able to make the route unlock!
Who is online
Users browsing this forum: Ocelot