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.
for my game, once you talk to three people I want a new menu will show up. This will be determined by points. I'm not sure about what I did wrong. If there's more than one way to do this then that would be more than appreciated.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "renpy/common/00start.rpy", line 107, in script
return
Exception: Could not find return label (u'/Users/Brixujel/Desktop/Visual Novals/Stranded/game/script.rpy', 1492537627, 33).
label selection:
if leave >= 3:
menu:
"Nadsarx":
jump food_Suppies
"Luna":
jump machine_check
"Makiri (In development)":
jump plan_out_route
if leave >= 3:
menu:
"Leave the Island (In development)":
jump leave
This means they're checking for exact the same condition instead of different ones. This isn't causing any sort of syntax error though. When does the error occur while the program is running? Is it right when the menu is supposed to display or at a different time?
default talkedto = []
label start:
if len(talkedto) == 3:
"Talked to everyone."
return
menu:
"People to talk to:"
"Nadsarx":
$ if "Nadsarx" not in talkedto : talkedto += ["Nadsarx"]
"Talked to Nadsarx."
#jump food_Suppies
"Luna":
$ if "Luna" not in talkedto : talkedto += ["Luna"]
"Talked to Luna."
#jump machine_check
"Makiri (In development)":
$ if "Makiri" not in talkedto : talkedto += ["Makiri"]
"Talked to Makiri."
#jump plan_out_route
jump start
return
default talkedto = []
label start:
menu:
set talkedto
"People to talk to:"
"Nadsarx":
"Talked to Nadsarx."
#jump food_Suppies
"Luna":
$ if "Luna" not in talkedto : talkedto += ["Luna"]
"Talked to Luna."
#jump machine_check
"Makiri (In development)":
"Talked to Makiri."
#jump plan_out_route
"Leave the Island (In development)" if len(talkedto) >= 3:
'Left the island'
return
jump start
default talkedto = []
label start:
menu:
set talkedto
"People to talk to:"
"Nadsarx":
"Talked to Nadsarx."
#jump food_Suppies
"Luna":
"Talked to Luna."
#jump machine_check
"Makiri (In development)":
"Talked to Makiri."
#jump plan_out_route
"Leave the Island (In development)" if len(talkedto) >= 3:
'Left the island'
return
jump start