init python:
def ending(truth):
global<goodending>
global<badending>
if truth >=0:
renpy.jump(goodending)
else:
renpy.jump(badending)
return
ren'py says green lines are invaild, I'm not sure what's wrong...
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 42: invalid syntax
global<"goodending">:
^
[Help] invaild syntax, I don't know what's wrong
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.
Re: [Help] invaild syntax, I don't know what's wrong
Code: Select all
init python:
def ending(truth):
global goodending
global badending
if truth >=0:
renpy.jump(goodending)
else:
renpy.jump(badending)
return
Look! It's moving. It's alive. It's alive... IT'S ALIVE! Oh, in the name of God! Now I know what it feels like to be God!(@Henry_Frankenstein. Sums up my coding style)
Who is online
Users browsing this forum: Google [Bot]