|
6.
|
|
|
The first form of the say statement consists of a string by itself. This form is used for narration, with the narration being the contents of the string.
|
|
|
|
A primeira forma da instrução say consiste em uma string por si só. Esta forma é usada para narração, com a narração sendo o conteúdo do fio.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/dialogue.rst:38
|
|
7.
|
|
|
The second form consists of two strings. The first string is the name of the character who is speaking, and the second is the dialogue being spoken.
|
|
|
|
A segunda forma consiste em duas strings. A primeira string é o nome do personagem que está falando e a segunda é o diálogo sendo falado.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/dialogue.rst:42
|
|
8.
|
|
|
The third form consists of a simple expression followed by a string. The simple expression should evaluate to either a string giving a character name, or a Character object. In the latter case, the character object is used to control how the dialogue is shown.
|
|
|
|
A terceira forma consiste em uma expressão simples seguida por uma string. A expressão simples deve ser avaliada como uma string que fornece um nome de caractere ou um objeto Character. No último caso, o objeto personagem é usado para controlar como o diálogo é mostrado.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/dialogue.rst:46
|
|
9.
|
|
|
The final form consists of a string and a with clause which has a transition. In this case, the string is shown and a screen is shaked at the same time.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/dialogue.rst:51
|
|
10.
|
|
|
Although the precise details of what a say statement does is controlled by the character object used, the usual effect of a say statement is to display dialogue on the screen until the user clicks to dismiss it, then to remove that dialogue on the screen.
|
|
|
|
Embora os detalhes precisos do que uma instrução say faz sejam controlados pelo objeto de personagem usado, o efeito usual de uma instrução say é exibir o diálogo na tela até que o usuário clique para dispensá-lo e, em seguida, remover esse diálogo da tela.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/dialogue.rst:56
|
|
11.
|
|
|
Certain characters have special meaning to Ren'Py, and so can't be used in dialogue strings. The ``{`` character begins a text tag, and the ``[`` character begins a substitution. To use them in dialogue, double them. It may also be necessary to precede a quote with a backslash to prevent it from closing the string. For example::
|
|
|
|
Certos caracteres têm um significado especial para Ren'Py e, portanto, não podem ser usados em sequências de diálogo. O caractere `` {`` começa uma tag de texto, e o caractere `` [`` começa uma substituição. Para usá-los no diálogo, dobre-os. Também pode ser necessário preceder uma citação com uma barra invertida para evitar que ela feche a string. Por exemplo::
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/dialogue.rst:61
|
|
12.
|
|
|
Defining Character Objects
|
|
|
|
Definindo Objetos de Personagem
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/dialogue.rst:72
|
|
13.
|
|
|
By creating a Character object and using it in a say statement, you can customize the look (and to some extent, the behavior) of dialogue. Characters are created by using the define statement to assign a Character to a variable. For example::
|
|
|
|
Ao criar um objeto Personagem e usá-lo em uma declaração, você pode personalizar a aparência (e até certo ponto, o comportamento) do diálogo. Os caracteres são criados usando a instrução define para atribuir um caractere a uma variável. Por exemplo::
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/dialogue.rst:74
|
|
14.
|
|
|
Once this is done, the character can be used in a say statement::
|
|
|
|
Uma vez feito isso, o caractere pode ser usado em uma declaração dizer:
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/dialogue.rst:83
|
|
15.
|
|
|
Character is a python function, that takes a large number of keyword arguments. These keyword arguments control the behavior of the character.
|
|
|
|
Character é uma função python, que recebe um grande número de argumentos de palavras-chave. Esses argumentos de palavra-chave controlam o comportamento do personagem.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/dialogue.rst:88
|