|
1.
|
|
|
Statement Equivalents
|
|
|
|
유연성있는
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/statement_equivalents.rst:8
|
|
2.
|
|
|
To allow Ren'Py to be scripted in python, each Ren'Py statement has equivalent Python code. This usually consists of a Python function, but may also consist of a code pattern that performs an action equivalent to the statement.
|
|
|
|
렌 파이를 파이썬으로 스크립할 수 있도록 각 렌 파이 문에는 동등한 파이썬 코드가 있습니다. 일반적으로 Python 함수로 구성되지만 명령문과 조치를 수행하는 코드 패턴으로 구성 될 수도 있습니다.
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/statement_equivalents.rst:10
|
|
3.
|
|
|
Dialogue
|
|
|
|
대화
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/statement_equivalents.rst:17
|
|
4.
|
|
|
The Ren'Py say statement is equivalent to calling the character object as a function. The following code displays the same line twice::
|
|
|
|
렌 파이 say문은 문자 객체를 함수로 호출하는 것과 같습니다. 다음 코드는 같은 줄을 두 번 표시합니다.
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/statement_equivalents.rst:19
|
|
5.
|
|
|
Displaying narration can be done the same way, by using the ``narrator`` character. When calling a character, it's possible to supply the keyword argument `interact`. When interact is false, Ren'Py will display the character dialogue box, and will then return before performing an interaction.
|
|
|
|
내레이터 표시는 "내레이터"문자를 사용하여 같은 방식으로 수핼 할 수 있습니다. 문자를 호출 할 때 키워드 인수 'interact'를 제공 할 수 있다. interact가 false이면 Ren'Py는 문자 대화 상자를 표시 한 다음 상호 작용을 수행하기 전에 돌아갑니다.
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/statement_equivalents.rst:26
|
|
6.
|
|
|
This equivalence of characters and function objects works in the other direction as well. It is possible to declare a python function, and then use that function in the place of a character object. For example, the following function uses a variable to choose between two characters. ::
|
|
|
|
문자와 함수 객체의 동등성은 다른 방향으로도 작동합니다. 파이썬 함수를 선언 한 다음 문자 객체 대신 해당 함수를 사용할 수 있습니다. 예를들어 다음 함수는 변수를 사용하여 두 문제 중에서 선택합니다.
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/statement_equivalents.rst:32
|
|
7.
|
|
|
A function used in this way should either ignore unknown keyword arguments, or pass them to a character function. Doing this will allow the game to continue working if Ren'Py adds additional keyword arguments to character calls.
|
|
|
|
이런 식으로 사용되는 함수는 알수없는 키워드 인수를 무시하거나 문자 함수에 전달해야합니다. 이렇게하면 렌파이가 추가 키워드 인수를 문자 호출에 추가하면 게임이 계속 작동 할 수 있습니다.
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/statement_equivalents.rst:59
|
|
8.
|
|
|
The equivalent of the say statement.
|
|
|
|
say 문과 동일하다
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/inc/se_say:5
|
|
9.
|
|
|
`who`
|
|
|
|
누가
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/inc/se_say:10
|
|
10.
|
|
|
Either the character that will say something, None for the narrator, or a string giving the character name. In the latter case, the :func:`say` is used to create the speaking character.
|
|
|
|
내레이터에는 없음을 나타내는 문자 또는 문자이름을 제공하는 문자열입니다. 후자의 경우 : func:'say'는 말하기 문자를 만드는 데 사용됩니다.
|
|
Translated and reviewed by
구현주
|
|
|
|
Located in
../../source/inc/se_say:8
|