Изменения

Строка 27: Строка 27:  
* Логика игры для этих кодов находится в <tt>GameLocation::checkEventPrecondition</tt>.
 
* Логика игры для этих кодов находится в <tt>GameLocation::checkEventPrecondition</tt>.
   −
===Context===
+
===Контекст===
These check the current time, date, weather, etc. They're not player-specific.
+
Проверяет текущие время, дату, погоду и т.д. Не зависит от игрока.
    
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! syntax
+
! Синтаксис
! precondition
+
! Предварительные условия
 
|-
 
|-
 
| <tt>A {{t|dialogue ID}}</tt>
 
| <tt>A {{t|dialogue ID}}</tt>
| The special dialogue event with the given ID is ''not'' in progress. This can be a custom event ID, but these are the in-game IDs: <tt>cc_Begin</tt>, <tt>cc_Boulder</tt>, <tt>cc_Bridge</tt>, <tt>cc_Bus</tt>, <tt>cc_Complete</tt>, <tt>cc_Greenhouse</tt>, <tt>cc_Minecart</tt>, <tt>dumped_Girls</tt>, <tt>dumped_Guys</tt>, <tt>Introduction</tt>, <tt>joja_Begin</tt>, <tt>pamHouseUpgrade</tt>, <tt>pamHouseUpgradeAnonymous</tt>, <tt>secondChance_Girls</tt>, <tt>secondChance_Guys</tt>, <tt>shaneSaloon1</tt>, <tt>shaneSaloon2</tt>, <tt>willyCrabs</tt>.
+
| Специальное событие по диалогу с данным ID ''не'' выполняется. Это может быть пользовательский ID события, но это стандартные ID в игре: <tt>cc_Begin</tt>, <tt>cc_Boulder</tt>, <tt>cc_Bridge</tt>, <tt>cc_Bus</tt>, <tt>cc_Complete</tt>, <tt>cc_Greenhouse</tt>, <tt>cc_Minecart</tt>, <tt>dumped_Girls</tt>, <tt>dumped_Guys</tt>, <tt>Introduction</tt>, <tt>joja_Begin</tt>, <tt>pamHouseUpgrade</tt>, <tt>pamHouseUpgradeAnonymous</tt>, <tt>secondChance_Girls</tt>, <tt>secondChance_Guys</tt>, <tt>shaneSaloon1</tt>, <tt>shaneSaloon2</tt>, <tt>willyCrabs</tt>.
 
|-
 
|-
 
| <tt>F</tt>
 
| <tt>F</tt>
| Today is ''not'' a festival day.
+
| Сегодня ''не'' день фестиваля.
 
|-
 
|-
 
| <tt>U {{t|day count}}</tt>
 
| <tt>U {{t|day count}}</tt>
| There are no festivals within the specified number of days from today.
+
| В течение указанного количества дней с сегодняшнего дня фестивалей не будет.
 
|-
 
|-
 
| <tt>d {{t|day of week}}</tt>
 
| <tt>d {{t|day of week}}</tt>
| Today is ''not'' one of the specified days (may specify multiple days). Valid values: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
+
| Сегодня ''не'' один из указанных дней (можно указать несколько дней). Доступные значения: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
 
|-
 
|-
 
| <tt>r {{t|number}}</tt>
 
| <tt>r {{t|number}}</tt>
| A random probability check, where {{t|number}} is the probability between 0 and 1 (e.g. 0.2 for 20% chance).
+
| Проверка случайной вероятности, где {{t|number}} число между 0 и 1 (т.е. 0.2 соответствует 20% шансу).
 
|-
 
|-
 
| <tt>v {{t|name}}</tt>
 
| <tt>v {{t|name}}</tt>
| The specified NPC is not invisible (regardless of whether they're on-screen).
+
| Указанный NPC не невидимый (независимо от того, находятся ли они на экране).
 
|-
 
|-
 
| <tt>w {{t|weather}}</tt>
 
| <tt>w {{t|weather}}</tt>
| Current weather matches {{t|weather}}. Valid values: rainy, sunny.
+
| Текущие погодные условия соответствуют {{t|weather}}. Доступные значения: rainy, sunny.
 
|-
 
|-
 
| <tt>y {{t|year}}</tt>
 
| <tt>y {{t|year}}</tt>
| If {{t|year}} is 1, must be in the first year. Otherwise, year must be at least this value.
+
| Если {{t|year}} - 1, то событие должно произойти в первый год. В противном случае, год должен быть не менее этого значения.
 
|-
 
|-
 
| <tt>z {{t|season}}</tt>
 
| <tt>z {{t|season}}</tt>
| Current season is ''not'' {{t|season}}.
+
| Текущий сезон ''не'' {{t|season}}.
 
|}
 
|}
  
602

правки