Difference between revisions of "Bethesda Tutorial Quest Objectives/ru"

imported>Vitamant
imported>Vitamant
Line 85: Line 85:
{{Inuse/ru}}
{{Inuse/ru}}


Помнишь ту страшную функцию <code>SetObjectiveDisplayed()</code>? Вот тут то она нам и понадобится. Should the following NOT work for some odd reason, those are a safety net. They will do what this is supposed to do. I suggest doing both to have all the bases covered.
Помнишь ту страшную функцию <code>SetObjectiveDisplayed()</code>? Вот тут то она и используется. Если по какой-либо причине первая функция не вызовет обновление ориентиров, то эта гарантирует, что они все-таки будут обновлены. Советую указывать оба.


Вернись на вкладку Quest Stages. Сейчас мы усложним квест, добавив в него немного логики.
Вернись на вкладку Quest Stages. Сейчас мы усложним квест, добавив в него немного логики.


Щелкни по стадии 10 в списке слева. In order to add script logic or a log entry to a quest stage, it needs to have at least one "[[Quest_Stages_Tab|quest stage item]]", so right-click in the table that says "Log Entry" at the top and select "New."  
Для того чтобы добавить логику или запись в журнал, квесту необходимо иметь хотя бы одну "{{ulink|Quest_Stages_Tab|стадию}}". Выбери вторую (под индексом 10) и, щелкнув ПКМ по таблице "Log Entry" (справа) выбери "New."  


Log entries are the bits of text that will appear in the player's journal. Only the most recent log entry will be visible, so you can use this to update the story of the quest as it changes. Down in the "Log Entry" area, put the following:
Записанные здесь фрагменты текста будут появляться в журнале игрока. Отображаться будет только последняя запись, поэтому можешь использовать его для обновления ориентиров, когда это необходимо. В поле ввода "Log Entry" запиши следующее:


<blockquote><i>I've met Bendu Olo, who had a precious amulet stolen. He offered twice its value as a reward, since he has a sentimental attachment to it.</i></blockquote>
<blockquote><i>Я встретил Менду Оло. Он рассказал, что у него украли амулет. Он обещает заплатить двойную цену тому, кто вернет ему пропажу.</i></blockquote>


Click over to the text field on the right (in the Papyrus fragment tab). Doing so will pop up the spell-check window, complaining that "Bendu" and "Olo" are not proper words. Ignore both "mistakes" and we'll add the script logic.  
Щелкни в поле справа (на вкладке Papyrus Fragment).


In the Papyrus area, put: <code>SetObjectiveDisplayed(10)</code>. Press the "Compile" button to make sure you did it right. As you might guess, this set the quest's current objective to 10, and give the player the appropriate quest targets. Because it's the first objective shown for this quest, it will also cause the "STARTED" banner to be shown to the player.  
Вводим: <code>SetObjectiveDisplayed(10)</code>. Нажми кнопку "Compile", чтобы убедиться, что все введено корректно. Как ты, наверное, догадался, это изменит текущий ориентир на 10, поставив перед игроком новые цели. Поскольку, это первый ориентир, отображаемый в квесте, это также пометит квест значком "STARTED" (начат).  


[[Image:SettingObjective10.png|600px]]
[[Image:SettingObjective10.png|600px]]
Anonymous user