Строка 204: |
Строка 204: |
| | | |
| ==Формат== | | ==Формат== |
− | Dialogue text can contain tokens and commands which control the dialogue box, change the text (e.g. switch between gender-specific strings), inject values, etc. These are parsed by the <tt>Dialogue</tt> class.
| + | Текст диалога может содержать маркеры и команды, которые управляют диалоговым окном, изменяют текст (например, переключаются между строками, зависящими от пола), вводят значения и т.д. Они анализируются с помощью класса <tt>Dialogue</tt>. |
| | | |
− | Special tokens:
| + | Специальные символы: |
| | | |
| {| class="wikitable" | | {| class="wikitable" |
| |- | | |- |
− | ! character | + | ! Символ |
− | ! description | + | ! Описание |
| |- | | |- |
| | <tt>#</tt> | | | <tt>#</tt> |
− | | Separates two commands in a dialogue string. | + | | Разделяет две команды в строке диалога. |
| |- | | |- |
| | <tt>{</tt> | | | <tt>{</tt> |
− | | TODO. Stands for "breakSpecialCharacter". | + | | TODO. Расшифровывается как "breakSpecialCharacter". |
| |- | | |- |
| | <tt>^</tt> | | | <tt>^</tt> |
− | | Gender switch character. The text before it is shown for male farmers, the text after it for female farmers.<br />''Example: <code>Oh, good morning Mr. @!^Oh, good morning Ms. @!</code>'' | + | | Меняет текст в зависимости от пола. Текст перед ним показан для персонажа-мужчины, после него-для персонажа-женщины.<br />''Например: <code>Oh, good morning Mr. @!^Oh, good morning Ms. @!</code>'' |
| |- | | |- |
| | <tt>%</tt> | | | <tt>%</tt> |
− | | Turns the dialogue box into a generic text box.<br />''Example: <code>"%Abigail is lost in her music."</code>'' | + | | Превращает диалоговое окно в обычное текстовое поле.<br />''Например: <code>"%Abigail is lost in her music."</code>'' |
| |- | | |- |
| | <tt>*</tt> | | | <tt>*</tt> |
− | | TODO. Stands for "quickResponseDelineator". | + | | TODO. Расшифровывается как "quickResponseDelineator". |
| |} | | |} |
| | | |
Строка 254: |
Строка 254: |
| | <tt>$3</tt> | | | <tt>$3</tt> |
| | <tt>$u</tt> | | | <tt>$u</tt> |
− | | Use their unique portrait. This is different for each NPC: grumpy ([[Abigail]]), holding football ([[Alex]]), angry ([[Caroline]]), sick ([[Governor]]), etc. | + | | Использует уникальный портрет. Отличается для каждого NPC: сердитая ([[Абигейл]]), во время игры в футбол ([[Алекс]]), сердитая ([[Кэролайн]]), больной ([[Губернатор]]), и т.д.. |
| |- | | |- |
| | <tt>$4</tt> | | | <tt>$4</tt> |
| | <tt>$l</tt> | | | <tt>$l</tt> |
− | | Use their love portrait. | + | | Использует любовный портрет. |
| |- | | |- |
| | <tt>$5</tt> | | | <tt>$5</tt> |
| | <tt>$a</tt> | | | <tt>$a</tt> |
− | | Use their angry portrait. | + | | Использует сердитый портрет. |
| |- | | |- |
| | <tt>${{t|id}}</tt> | | | <tt>${{t|id}}</tt> |
| | | | | |
− | | A custom portrait beyond the standard six. | + | | Индивидуальный портрет, выходящий за рамки стандартных шести. |
| |} | | |} |
| | | |
− | Portrait commands should be at the end of a dialogue line:
| + | Команды портрета должны быть в конце строки диалога: |
| :<code>"fall_Fri6": "When I was a little girl, my father abandoned us.$s#$b#I'm sorry to make things uncomfortable for you...$u#$e#Anyway... How's the farming life going?",</code> | | :<code>"fall_Fri6": "When I was a little girl, my father abandoned us.$s#$b#I'm sorry to make things uncomfortable for you...$u#$e#Anyway... How's the farming life going?",</code> |
| | | |
− | ===Dialogue commands=== | + | ===Диалоговые команды=== |
| | | |
| {| class="wikitable" | | {| class="wikitable" |
| |- | | |- |
− | ! command | + | ! Команда |
− | ! description | + | ! Описание |
| |- | | |- |
| | <tt>$q {{t|response IDs}} {{t|fallback}}#{{t|text}}</tt> | | | <tt>$q {{t|response IDs}} {{t|fallback}}#{{t|text}}</tt> |
− | | Show a dialogue box containing the given question text. If {{t|response IDs}} (a list delimited by <code>/</code>) contains an answer already given, the question is skipped (along with the rest of this dialogue line), and instead the dialogue entry identified by {{t|fallback}} will be appended to whatever precedes this $q command. The {{t|fallback}} dialogue typically uses a $p command to adjust the text based on the player's answer to this question. NOTE: dialogue questions must use unique IDs, similar to events. See [[Modding:Event_data|the event data page]] for more information. | + | | Показать диалоговое окно, содержащее заданный текст вопроса. Если {{t|response IDs}} (список, разделенный <code>/</code>) содержит ответ, вопрос пропускается (вместе с остальной частью этой строки диалога), и вместо этого запись диалога, идентифицированная {{t|fallback}} будет приложено ко всему, что предшествует этой команды $q. {{t|fallback}} В диалоге обычно используется команда $p для корректировки текста на основе ответа игрока на этот вопрос. ПРИМЕЧАНИЕ: в вопросах диалога должны использоваться уникальные идентификаторы, аналогичные событиям. Смотри [[Модификации:События| события]] для дополнительной информации. |
| |- | | |- |
| | <tt>$r {{t|response ID}} {{t|friendship}} {{t|reaction}}#{{t|answer text}}</tt> | | | <tt>$r {{t|response ID}} {{t|friendship}} {{t|reaction}}#{{t|answer text}}</tt> |