|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
- I'm sorry, but an uncaught exception occurred.
- While running game code:
- File "game/pt__pregame.rpy", line 399, in script
- if pn == "scrubpai":
- SyntaxError: invalid syntax (game/pt__pregame.rpy, line 423)
- -- Full Traceback ------------------------------------------------------------
- Full traceback:
- File "game/pt__pregame.rpy", line 399, in script
- if pn == "scrubpai":
- File "F:\Renpy\project\BEYONDME\renpy\ast.py", line 1729, in execute
- if renpy.python.py_eval(condition):
- File "F:\Renpy\project\BEYONDME\renpy\python.py", line 1941, in py_eval
- code = py_compile(code, 'eval')
- File "F:\Renpy\project\BEYONDME\renpy\python.py", line 674, in py_compile
- raise e
- SyntaxError: invalid syntax (game/pt__pregame.rpy, line 423)
- Windows-8-6.2.9200
- Ren'Py 7.0.0.196
- Beyond You! 1.1.08
- Sat Aug 31 14:13:02 2019
复制代码
这段代码是可以运行的
$ pn = renpy.input("输入你的名字!", length=16)
$ pn = pn.strip()
if not pn:
$ pn = "Nao"
if pn == "scrubpai":
jump bijuu
pass
elif pn == "scrubpai 2.0":
jump bijuu
pass
elif pn == "Scrubpai 2.0":
jump bijuu
pass
elif pn == "Scrubpai":
jump bijuu
pass
else:
pass
jump dayfour_haruka
而这个我设的代码就不可以:
$ pn = renpy.input("输入你的名字!", length=16)
$ pn = pn.strip()
if not pn:
$ pn = "Nao"
if pn == "scrubpai":
jump bijuu
pass
elif pn == "scrubpai 2.0":
jump bijuu
pass
elif pn == "Scrubpai 2.0":
jump bijuu
pass
elif pn == "Scrubpai":
jump bijuu
pass
elif pn == "Aiko":
jump Aikoname
pass
elif pn =="Debugmode":
jump Debugmode
pass
elif pn == "Debgmode":
jump realDebugmode
pass
elif pn == "Yige":
jump Yigetester
pass
elif pn == "AAAAAA" || pn =="ABCDEF" || PN == "123456":
call screen dialog("多么没有新意的名字。", ok_action=Return())
pass
elif pn == "HexVexed":
jump start_1
else:
pass
jump dayzero |
|