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.
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 1043: expected statement.
renpy.full_restart(transition=False, label='_invoke_main_menu', target='_main_menu'):
^
Ren'Py Version: Ren'Py 7.0.0.196
Sun Aug 12 11:07:11 2018
This is the code it occurs in (it comes right after a jumpscare) -
text "Bad ending"
text "Maybe you should try agian."
renpy.full_restart(transition=False, label='_invoke_main_menu', target='_main_menu')
label falsepath4:
"I kissed him back as I wrapped my arms around him."
renpy.full_restart will take a player back to the main menu, but why aren't you just using a return?
Also, labels should be indented all the way left, with no spaces.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Yes, I can see what you're trying to achieve, and a return will do exactly the same thing.
There's no harm in using it, but that full restart function is meant for other uses, like fully restarting Ren'py, without needing to close and relaunch the game, resetting any game state and returning a player to the very top of the call stack.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.