Captions and say menuitems may not exist in the same menu.“one \n File “game/script.rpy“, line 45:

报错信息:

源代码:

# 游戏的脚本可置于此文件中。

# 声明此游戏使用的角色。颜色参数可使角色姓名着色。

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)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值