Hello, I'm new to the Ren'Py engine. If someone could help me I would greatly appreciate it.
I have a game map where the player clicks on certain areas like "shop" "school" "gym" etc. I want to have like 10 different story scenes for each location, so if I click on "gym" on my map I start #1 scene which I place inside a label. However if I already did #1 scene I do NOT want for it to be replayed again. It should jump to #2 story scene.
So basically if I completed the first story then it should jump to the second, third, etc.
I tried searching up this but found empty hands. Please help. Thank you!
How to lock scenes after playing it once?
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.
-
- Newbie
- Posts: 13
- Joined: Fri Nov 30, 2018 5:14 pm
- Contact:
Re: How to lock scenes after playing it once?
You can use variables for that or persistent data.
if not_scene_1_done is the same as if scene_1_done == False
Code: Select all
$ scene_1_done = False
label scene_1:
if not scene_1_done:
'some text'
'end of scene 1'
$scene_1_done = True
else:
jump scene_2
label scene_2:
'scene 2'
Who is online
Users browsing this forum: Ocelot