报错信息:
源代码:
# 游戏的脚本可置于此文件中。
# 声明此游戏使用的角色。颜色参数可使角色姓名着色。
define a = Character("anna", color = "#ff9988")
define m = Character("me", color = "#888888")
# 游戏在此开始。
label start:
scene bg whitehouse # 显示一个背景。此处默认显示占位图,但您也可以在图片目录添加一个文件
with dissolve
show anna squat shy at left # (命名为 bg room.png 或 bg room.jpg)来显示。
with fade
play music "illurock.opus"
"window hide"
window hide
"me" "window show"
window show
"show anna squat shy at left with nothing"
show anna squat shy at left
"show anna squat shy at right"
"whit fade"
show anna squat shy at right
with fade
"show anna squat shy at left"
"whit dissolve"
show anna squat shy at left
with dissolve
"begin to practice label menu "
menu:
m "its a menu "
"one \n with last text" #---------------------------------在这里报错
"two \n with last text"
"option 1":
"you entered option 1"
jump label1
"option 2":
"you entered option 2"
jump label2
label label1:
"you jumped to label1"
label label2:
"you jumped to label 2"
"begin dialogue"
a "你好, lisanndesu,很高兴认识你"
"你知道的, 我最近一直很忙"
"你有看过我的动漫吗?"
m "当然"
"我很激动地说到"
m "我很喜欢\"败犬女主太多了\""
"我已经追完了每一集"
"its a selience"
m "你知道吗"
m "在中国, 你的名字叫\"八奈见杏菜\""
# 此处为游戏结尾。
return
报错原因:
menu后, option前, 对话条数/内容过多, 改成一句话就ok了
修改后code:
# 游戏的脚本可置于此文件中。
# 声明此游戏使用的角色。颜色参数可使角色姓名着色。
define a = Character("anna", color = "#ff9988")
define m = Character("me", color = "#888888")
# 游戏在此开始。
label start:
scene bg whitehouse # 显示一个背景。此处默认显示占位图,但您也可以在图片目录添加一个文件
with dissolve
show anna squat shy at left # (命名为 bg room.png 或 bg room.jpg)来显示。
with fade
play music "illurock.opus"
"window hide"
window hide
"me" "window show"
window show
"show anna squat shy at left with nothing"
show anna squat shy at left
"show anna squat shy at right"
"whit fade"
show anna squat shy at right
with fade
"show anna squat shy at left"
"whit dissolve"
show anna squat shy at left
with dissolve
"begin to practice label menu "
menu:
m "its a menu " #--------------------------------只有一句话
"option 1":
"you entered option 1" #-----------多余dialogue移动到其他位置
"one \n with last text"
"two \n with last text"
jump label1
"option 2":
"you entered option 2"
jump label2
label label1:
"you jumped to label1"
label label2:
"you jumped to label 2"
"begin dialogue"
a "你好, lisanndesu,很高兴认识你"
"你知道的, 我最近一直很忙"
"你有看过我的动漫吗?"
m "当然"
"我很激动地说到"
m "我很喜欢\"败犬女主太多了\""
"我已经追完了每一集"
"its a selience"
m "你知道吗"
m "在中国, 你的名字叫\"八奈见杏菜\""
# 此处为游戏结尾。
return
类似报错&解决:
"Say menuitems and captions cannot exist within the same menu." - Lemma Soft Forums (renai.us)