renpy.return?
Posted: Fri Mar 06, 2020 5:45 am
Hello guys,
I have simplified my problem in this example, but what I need right now is a way to do the Return() in a python method.
I have simplified my problem in this example, but what I need right now is a way to do the Return() in a python method.
Code: Select all
label test:
"something goes here"
call test2()
"something else goes here"
label test2:
call screen test_screen()
screen test_screen():
key "K_UP" action Function(testFunction)
key "e" action Return()
init python:
testFunction():
#doing some stuffs and x becomes either True or False
if x:
#I need here a way to leave everything. something like renpy.return(), but this function doesn't exist.
# If I do renpy.jump("test") it will start everything from the beginning.
# So basically I need to call the same function as if I'd pressed 'E'
# If I just write return it will just leave the function so that won't work either
else:
#something else happen