每日签到 地址发布 老王说明书 宣传中心 繁/简
楼主: xxw0128
收起左侧

[欧美] [自行打包] 【淫母SLG/精翻/双端】ShutUp and Dance沉寂之舞Ep.1-11v1.0SE画廊+Mod [2+13.2G][多种下载方式]

    [复制链接]
发表于 6 天前 | 显示全部楼层
教大家一个怎么起中文名字的办法,记事本打开script.rpy文件后将label namemc:
    scene warning
    with fade
    pause 4.5
    stop music fadeout 5

    scene blackscreen
    with dissolve

    $ mc_name = renpy.input("Name your character! Max 10 characters", allow=" 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", length=10).strip() #the66
    if mc_name == "":
        "lease give your character a name that is between 2-10's characters long."
        jump namemc
    if mc_name is not None:
        $ check_name = len(mc_name)
        if check_name == 1:
            "You must name your character a minimum of 2 letters."
            jump namemc
    $ mc_name = mc_name.title()
    "Do you want to name you character [mc_name]?"
    menu:
        "Yes":
            pass
        "No":
            jump namemc

    window hide
    with fade这一段代码改为label namemc:
    scene warning
    with fade
    pause 4.5
    stop music fadeout 5

    scene blackscreen
    with dissolve

    # 从 name.txt 读取中文名字(文件放在 game 文件夹里,编码 UTF-8)
    python:
        try:
            with open(config.gamedir + "/name.txt", "r", encoding="utf-8") as f:
                mc_name = f.read().strip()
        except:
            mc_name = "默认名"
        if mc_name == "":
            mc_name = "默认名"

    "Do you want to name you character [mc_name]?"
    menu:
        "Yes":
            pass
        "No":
            jump namemc

    window hide
    with fade
即可
回复 支持 反对

使用道具 举报

发表于 6 天前 | 显示全部楼层
改中文名字教程来了友友们。首先用记事本打开game文件夹下的script.rpy文件
将label namemc:
    scene warning
    with fade
    pause 4.5
    stop music fadeout 5

    scene blackscreen
    with dissolve

    $ mc_name = renpy.input("Name your character! Max 10 characters", allow=" 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", length=10).strip() #the66
    if mc_name == "":
        "lease give your character a name that is between 2-10's characters long."
        jump namemc
    if mc_name is not None:
        $ check_name = len(mc_name)
        if check_name == 1:
            "You must name your character a minimum of 2 letters."
            jump namemc
    $ mc_name = mc_name.title()
    "Do you want to name you character [mc_name]?"
    menu:
        "Yes":
            pass
        "No":
            jump namemc

    window hide
    with fade
替换成label namemc:
    scene warning
    with fade
    pause 4.5
    stop music fadeout 5

    scene blackscreen
    with dissolve

    # 从 name.txt 读取中文名字(文件放在 game 文件夹里,编码 UTF-8)
    python:
        try:
            with open(config.gamedir + "/name.txt", "r", encoding="utf-8") as f:
                mc_name = f.read().strip()
        except:
            mc_name = "默认名"
        if mc_name == "":
            mc_name = "默认名"

    "Do you want to name you character [mc_name]?"
    menu:
        "Yes":
            pass
        "No":
            jump namemc

    window hide
    with fade
即可
切记保存好原文件,我是改好了目前没有报错
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册
点击进行验证

本版积分规则

我们不生产资源,只做资源的搬运工。

广告合作-tags标签-app下载-Archiver-小黑屋-