Изменения

Перейти к навигации Перейти к поиску
Строка 113: Строка 113:  
|}
 
|}
   −
==Map==
+
==Карта==
Many festivals use a separate [[Modding:Maps|map file]] located in the <tt>Content/Maps</tt> folder. The map to use is specified in the [[#Data file|data file]]'s <tt>set-up</tt> field using the <tt>changeToTemporaryMap</tt> command.
+
Многие фестивали используют отдельные [[Модификации:Карты|файлы карты]] расположенные в папке <tt>Content/Maps</tt>. Карта для использования указана в [[#Файл данных|файле данных]] <tt>set-up</tt> поле, использующее команду <tt>changeToTemporaryMap</tt>.
   −
===Spawned NPCs===
+
===Создание NPC===
{{note box|'''This is fragile and not recommended for custom NPCs or festivals.'''<br />Consider using the [[#Data file|data file]]'s <tt>Set-Up_additionalCharacters</tt> field instead.}}
+
{{note box|'''Это хрупко и не рекомендуется для пользовательских NPC или фестивалей.'''<br />Рассмотрите возможность использования [[#Файл данных|файлов данных]] поля <tt>Set-Up_additionalCharacters</tt> вместо этого.}}
   −
NPCs can be added to festivals using map tile indexes on a specific layer. This is enabled in the [[#Data file|data file]]'s <tt>set-up</tt> field using the <tt>loadActors {{t|layer name}}</tt> command. For each tile which exists on the layer, the tile index is mapped to the NPC's index in the <tt>Data\NPCDispositions</tt> asset multiplied by four, with an offset which determines the facing direction (0 = up, 1 = right, 2 = down, or 3 = left).
+
NPC можно добавлять на фестивали, используя индексы тайлов карты на определенном слое. Это включено в [[#Файл данных|файле данных]] <tt>set-up</tt> поле, использующее команду <tt>loadActors {{t|layer name}}</tt>. Для каждого тайла, существующего на слое, индекс тайла сопоставляется с индексом NPC в <tt>Data\NPCDispositions</tt>, умноженный на четыре, со смещением, которое определяет направление поворота (0 = вверх, 1 = вправо, 2 = вниз, или 3 = влево).
   −
For example, let's say the layer has a tile with tilesheet index 61. That's the NPC at index <tt>61 / 4 = 15</tt> in <tt>Data\NPCDispositions</tt>, i.e. the 16th NPC, i.e. Leah. The offset is <tt>61 % 4 = 1</tt>, so she's facing right. When the festival is loaded, Leah will be added to that tile position facing right.
+
Например, предположим, что слой содержит тайл с индексом равным 61. NPC в индексе <tt>61 / 4 = 15</tt> в <tt>Data\NPCDispositions</tt>, т.е. 16-й NPC, т.е. Лея. Смещение равно <tt>61 % 4 = 1</tt>, так что она смотрит направо. Когда фестиваль будет загружен, Лея будет добавлена в положение тайла, смотрящей вправо.
    
==Hardcoded logic==
 
==Hardcoded logic==
602

правки

Навигация