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.
Ocelot wrote: ↑Sun Apr 08, 2018 3:45 am
Do you need to skip whole menu? Add an "if" statement before it checking if at least one route was seen and jump directly to beginning if not.
what i want is for the choice menu to be hidden meaning is locked until common route , route1 and route3 have been seen
say that you just started the game for the first time and there is NO CHOICE MENU then you have finish the first route then you start a new game again there is a choice menu
so when you start the game there is no menu until the first route has been seen
feels like i am repeat myself
okay if you have played Wanko to Kurasou you should know what i mean Wanko to Kurasou
Right, so you're saying once an ENDING has been experienced, then you get a choice menu? You've not mentioned anything about new game till now that's why we're all so lost as to what you're trying to achieve
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 40, in script
if not (route1_seen and route2_seen and route3_seen):
File "game/script.rpy", line 40, in <module>
if not (route1_seen and route2_seen and route3_seen):
NameError: name 'route1_seen' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 40, in script
if not (route1_seen and route2_seen and route3_seen):
File "G:\renpy\renpy-6.99.14.1-sdk\renpy\ast.py", line 1702, in execute
if renpy.python.py_eval(condition):
File "G:\renpy\renpy-6.99.14.1-sdk\renpy\python.py", line 1843, in py_eval
return py_eval_bytecode(code, globals, locals)
File "G:\renpy\renpy-6.99.14.1-sdk\renpy\python.py", line 1836, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 40, in <module>
if not (route1_seen and route2_seen and route3_seen):
NameError: name 'route1_seen' is not defined
Windows-8-6.2.9200
Ren'Py 6.99.14.1.3218
Wanko to Kurasou 1.0
Sun Apr 08 11:37:26 2018
if not (route1_seen and route2_seen and route3_seen):
jump beginning
menu path_choices:
nav "selection"
"Start from beginning":
$ main_seen = True
jump beginning
"Start from after OP":
$ main_seen = True
jump op
"Risa extra scenario":
$ route1_seen = True
jump extra1
"Kana & Kuu extra scenario":
$ route3_seen = True
jump extra2
return
Ocelot wrote: ↑Sun Apr 08, 2018 11:43 am
Objiously, you should replace route1_seen and others with actual variables used to determine which route you have already seen.
Look up persistent variables - if you want to unlock a menu after a player has played through the game through a path, you need to store the variable inside the persistent object - it's the only thing that remains the same throughout different play throughs.
If you store it in a normal variable, then once the player restarts the game, it'll reset to False.
kivik wrote: ↑Sun Apr 08, 2018 11:50 amLook up persistent variables - if you want to unlock a menu after a player has played through the game through a path, you need to store the variable inside the persistent object - it's the only thing that remains the same throughout different play throughs.
If you store it in a normal variable, then once the player restarts the game, it'll reset to False.
tried that
its not what I want the menu has to stay there when the play starts a new game cause when the first route has been done it goes to the main menu so if the player wishes to play the other routes he doesn't have have to replay the first route
but I try again
last time i have tried it last night after finishing the first route it didn't reappear