Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Launchpad Translators instructions and Chinese (Simplified) guidelines.
2736 of 107 results
27.
The init statement is used to execute blocks of Ren'Py statements before the script executes. Init blocks are used to define images and characters, to set up unchanging game data structures, and to customize Ren'Py. Code inside init blocks should not interact with the user or change any of the layers, and so should not contain say, menu, scene, show, or hide statements, as well as calls to any function that can do these things.
Init语句用于在脚本运行之前执行一些Ren'Py的语句。通常在初始化部分(Init blocks)可以定义图像(Image)和角色(Character)、设置一些不会改变的游戏数据结构、或者定制Ren'Py。不要在这部分代码中实现与用户交互或修改层(layer)的操作,也不要包含say、menu、scene、show 或 hide等语句,当然也不要调用任何包含这些语句或功能的函数。
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:133
28.
An init statement is introduced with the keyword init, followed by an optional priority number, and a mandatory colon. If the priority is not given, it defaults to 0. Priority numbers should be in the range -999 to 999. Numbers outside of this range are reserved for Ren'Py code.
您可以通过关键字“init”来调用Init语句,后面还可以选择性地加上表示优先级的数字,最后以冒号结尾(不可省略)。没有设定优先级的话优先级默认为0。优先级的取值范围是-999~999。在此范围之外的优先级是预留给Ren'Py自身的代码的。
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:140
29.
The priority number is used to determine when the code inside the init block executes. Init blocks are executed in priority order from low to high. Within a file, init blocks with the same priority are run in order from the top of the file to the bottom. The order of evaluation of priority blocks with the same priority between files is undefined.
优先级会决定合适运行后面的代码。不同的初始化模块将会根据其优先级的数字按照从低到高的顺序执行。在同一个文件中,具有相同优先级的代码块将会按照文件内的位置从头到尾依次运行。无法确定位于不同文件中的具有相同优先级数字的代码块如何确定优先级。
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:145
30.
The init blocks are all run once, during a special init phase. When control reaches the end of an init block during normal execution, execution of that block ends. If an init statement is encountered during normal execution, the init block is not run. Instead, control passes to the next statement.
整个初始化模块只在初始化阶段运行一次。在正常情况下该代码块的运行将会在运行到最后一行时结束。如果init语句出现在普通的运行当中,那么他下面的代码块将不会运行,跳过到下一个语句继续执行。
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:151
31.
Characters
角色(Characters)
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:157
32.
One problem with the first example is that it requires you to repeatedly type the name of a character each time they speak. In a dialogue-heavy game, this might be a lot of typing. Also, both character names are displayed in the same way, in fairly boring white text. To fix this, Ren'Py lets you define characters in advance. This lets you associate a short name with a character, and to change the color of the character's name.
第一个例子中的一个不足之处是当一个角色说话时需要反复输入他的名字。在一个以对话为主的游戏中,这可能意味着大量的输入工作。而且两个角色的名字都是以白色文本显示,这看上去有些单调。Ren'Py允许您进一步定义角色,来改善这些不足。您可以用一个简称来表示一个角色,并且改变他的名字的颜色。
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:159
33.
The first and and second lines define characters. The first line defines a character with the short name of "s", the long name "Sylvie", with a name that is shown in a greenish color. (The colors are red-green-blue hex triples, as used in web pages.)
前两行定义了两个角色。第一行定义的角色名叫“Sylvie”,她有一个简称“s”,她的名字显示出来是绿色的。(颜色通过三个十六进制数字定义,分别表示红绿蓝,这种方式常用于网页中的颜色)
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:184
34.
The second line creates a character with a short name "m", a long name "Me", with the name shown in a reddish color. Other characters can be defined by copying one of the character lines, and changing the short name, long name, and color.
第一行定义的角色名叫“Me”,她有一个简称“m”,他的名字显示出来是红色的。定义其他角色可以重复这几行代码,并修改简称,全名以及颜色。
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:189
35.
We've also changed the say statements to use character objects instead of a character name string. This tells Ren'Py to use the characters we defined in the init block.
我们还要修改之前的say语句,用刚刚定义的角色对象来代替角色的名字,告诉Ren'Py使用我们在初始化模块中定义的角色。
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:194
36.
Images
图像(Images)
Translated and reviewed by Hanming Wu
Located in ../../source/quickstart.rst:199
2736 of 107 results

This translation is managed by Launchpad Simplified Chinese Translators, assigned by Launchpad Translators.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Hanming Wu, Huang Junjie.