|
18.
|
|
|
Return Statement
|
|
|
|
Return语句
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:99
|
|
19.
|
|
|
The return statement pops the top statement off of the call stack, and transfers control to it. If the call stack is empty, the return statement restarts Ren'Py, returning control to the main menu.
|
|
|
|
Return语句用于将call堆栈的最上方语句出栈,并对其转换控制。如果call堆栈为空,那么return语句将重启Ren'py,使其回到主菜单。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/label.rst:101
|
|
20.
|
|
|
If the optional expression is given to return, it is evaluated, and it's result is stored in the _return variable. This variable is dynamically scoped to each context.
|
|
|
|
如果return语句后面有一个表达式的话,那么会将表达式的结果存储在变量_return中,该变量在每个上下文中的作用域是动态的。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:105
|
|
21.
|
|
|
Special Labels
|
|
|
|
特殊的标签(label)
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:110
|
|
22.
|
|
|
The following labels are used by Ren'Py:
|
|
|
|
Ren'Py会使用下面这些标签:
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/label.rst:112
|
|
23.
|
|
|
``start``
|
|
|
|
``start``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:115
|
|
24.
|
|
|
By default, Ren'Py jumps to this label when the game starts.
|
|
|
|
默认情况下Ren'Py将会从这里开始游戏。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:115
|
|
25.
|
|
|
``quit``
|
|
|
|
``quit``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:119
|
|
26.
|
|
|
If it exists, this label is called in a new context when the user quits the game.
|
|
|
|
若其存在,则此标签将会在用户结束游戏时呼出新的上下文。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/label.rst:118
|
|
27.
|
|
|
``after_load``
|
|
|
|
``after_load``
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/label.rst:123
|