You've reached a page on the Ren'Py wiki. Due to massive spam, the wiki hasn't been updated in over 5 years, and much of the information here is very out of date. We've kept it because some of it is of historic interest, but all the information relevant to modern versions of Ren'Py has been moved elsewhere.
Some places to look are:
Please do not create new links to this page.
By Ivlivs
直到Renpy 6.1.0。且不提需要输入法的语种如中文、日文等,就算是基于拉丁字母表的语言如西班牙语和法语,也不能使用renpy.input()。
下面介绍的方法将实现这一功能,关键就是读取一个可以被用户编辑的文本文件。
首先,建立一个文本文件,该文件只能含有你的角色姓名。注意,该姓名只能有一行,然后将文件保存为UTF-8格式。放在GAME文件夹中(就是放脚本的文件夹)。同时,请给该文件取个清晰易懂的文件名,以便其它玩家能够轻易地找到。
接下来,在你脚本的初始块中插入下面的代码:
BR 然后像这样声明一个角色,将名字当成变量。BR
BR 之后,如果你需要在某人的对话中插入某人的姓名时,使用 %(nameVar)s即可。BR 同时,别忘了附带一个简单的说明,告诉玩家如何修改这个文本文件。BR 当然,这个方法并不仅限于角色姓名,它可被用于各种形式的文本。BR
(Trans. by Sigma Xion)
原文出处 http://www.renpy.org/wiki/renpy/doc/cookbook/Circumventing_English-only_renpy.input%28%29