Branch/ru

From the CreationKit Wiki
Jump to navigation Jump to search

Ветка диалога



RoundRussianFlag.pngНа русском языке
Требуется помощь переводчика


Language: English


Ветки диалога (Dialogue Branches) — это структуры данных, служащие для группировки Топиков (en) (Topic). Благодаря веткам, в системе диалогов можно:

  • Организовывать и различать деревья диалогов. В сущности, каждая Ветка представляет собой отдельный 'поток' беседы.
  • Учитывать тот факт, что игрок может начать и прервать диалог в любое время, а значит предоставлять игроку возможность возобновлять прерванную беседу.


Данные ветки диалога[edit | edit source]

Ветка диалога (Dialogue Branch) содержит в себе следующие данные:

  • EditorID: Уникальный идентификатор формы редактора.
  • Starting Topic: Начальный топик, который служит как «точка входа» в диалог ветки. Для веток верхнего уровня (Top-Level Branches), начальный топик определяет то, что появится в списке топиков. Для блокирующих ветвей (Blocking Branches), их информация (en) будет использоваться NPC в качестве приветствия. Все ветки должны содержать только один начальный топик (Starting Topic). Если таковых несколько, то любой из них может быть выбран в качестве стартового.
  • Branch Type: (Тип ветки)
    • Normal: Нормальные ветки никогда не появляются в списке топиков (en) (topic list) непосредственно. Они доступны только косвенно через меню (посредством списка выбора (en) или из другой ветки).
    • Top-Level: Начальный топик ветки верхнего уровня доступны в начальном списке тем (en) (topic list) персонажей (NPC) (при условии, что информация в начальном топике доступна данному персонажу).
    • Blocking: Начальный топик (тема) Блокирующей ветки, в случае содержания информации, удовлетворяющим всем заданным условиям, блокирует остальные топики. Подробнее ниже.
  • Exclusive: Стоит игроку начать эксклюзивную ветку диалога, как она становится блокирующей, пока игрок не выйдет из неё. Смотрите далее.

Блокирующие ветки[edit | edit source]

Blocking Branches are used to override an NPC's normal topic list. When an NPC has a valid info in a Blocking Branch's Starting Topic, the NPC will use that info as his greeting (and Hello, unless the info is conditioned only to be valid in the dialogue menu).

When the player speaks to an NPC with a valid Blocking Branch:

  • If the info has a choice list, those choices will be displayed instead of the normal topic list.
  • If the info is marked as a "Force Goodbye", the dialogue menu will not come up, and the NPC will simply say the info from the branch's Starting Topic.
  • If the info has no choice list and is NOT a "Force Goodbye", the dialogue menu will be displayed with a single topic - the prompt on the branch's Starting Topic.

If an NPC has multiple Blocking Branches with valid starting topics, the branch from the quest with the highest priority will "win". When there are multiple valid blocking branches from the same quest, one of them will be "win", but results may be unpredictable. This is usually an error.

Exclusive Branches[edit | edit source]

These are similar to Blocking Topics, but they take over the topic list once you "enter" the branch (by the NPC saying a line from any of the Exclusive branch's topics).

Once the NPC is marked as "in" the Exclusive Branch, he will act as if that branch is a valid Blocking branch (see above) until he says a line of dialogue from a different (non-Exclusive) branch. For example, if you exit dialogue and then speak to the NPC again, his greeting will be the Exclusive branch's Starting Topic.