<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>https://tesck.ru/index.php?action=history&amp;feed=atom&amp;title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5</id>
		<title>Papyrus Введение - История изменений</title>
		<link rel="self" type="application/atom+xml" href="https://tesck.ru/index.php?action=history&amp;feed=atom&amp;title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5"/>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;action=history"/>
		<updated>2026-04-07T00:11:29Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=7007&amp;oldid=prev</id>
		<title>Admin: /* Что мне стоит почитать дальше? */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=7007&amp;oldid=prev"/>
				<updated>2018-02-12T04:45:40Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Что мне стоит почитать дальше?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 04:45, 12 февраля 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L459&quot; &gt;Строка 459:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 459:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here we put the check testing if the alias in question is the quest giver into it's own function &amp;quot;IsQuestGiver&amp;quot; that returns a value (in this case a bool) that we can then use in our comparison check. (Again, this is probably more complex than you would need for a simple function like this, but it illustrates the point that you can return your own values. You could also write a function that returns an actor, a quest, or any other [[Скриптовые объекты|Script Object]]. This can be a big boon in more complex scripting situations.)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here we put the check testing if the alias in question is the quest giver into it's own function &amp;quot;IsQuestGiver&amp;quot; that returns a value (in this case a bool) that we can then use in our comparison check. (Again, this is probably more complex than you would need for a simple function like this, but it illustrates the point that you can return your own values. You could also write a function that returns an actor, a quest, or any other [[Скриптовые объекты|Script Object]]. This can be a big boon in more complex scripting situations.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Что мне стоит почитать дальше?=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что мне стоит почитать дальше? =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ПОсле &lt;/del&gt;того, как вы поняли основные принципы на этой странице, далее следует посмотреть &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;следующие места&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;После &lt;/ins&gt;того, как вы поняли основные принципы на этой странице, далее следует посмотреть &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;следующее&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Read this page again&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and follow the links to get more information about the particulars that might have been glossed over&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Прочитайте данную страницу снова&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и пройдитесь по ссылкам, чтобы узнать больше деталей, которые могли опускаться или были даны слишком поверхностно&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Look over the documentation for the language here&lt;/del&gt;: [[:Category:Papyrus &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Language Reference&lt;/del&gt;|Papyrus &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Language Reference category&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Просмотрите документацию к языку здесь&lt;/ins&gt;: [[:Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Справка по языку &lt;/ins&gt;Papyrus|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;категория справка по языку &lt;/ins&gt;Papyrus]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Examine the pages in the &lt;/del&gt;[[:Category:Скриптовые объекты|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Script Objects category&lt;/del&gt;]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and see what kinds of functions are available to you for different objects&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Исследуйте страницы в категории &lt;/ins&gt;[[:Category:Скриптовые объекты|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Скриптовые объекты&lt;/ins&gt;]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и посмотрите какого рода функции доступны для различных объектов&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Look over some of the other informational pages and tutorials at the top of the &lt;/del&gt;[[:Category:Papyrus|Papyrus &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;category page&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Пробегитесь по другим информационным страницам и учебникам в верхней части &lt;/ins&gt;[[:Category:Papyrus|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;категории &lt;/ins&gt;Papyrus]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Poke around in the editor&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and deconstruct things&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Потыкайте в разных местах редактора&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и разложите существующие вещи&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Подробное объяснение]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Подробное объяснение]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Papyrus]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Papyrus]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Учебники Papyrus]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Учебники Papyrus]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=6006&amp;oldid=prev</id>
		<title>Admin: /* Что такое Papyrus? */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=6006&amp;oldid=prev"/>
				<updated>2016-03-17T05:22:53Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Что такое Papyrus?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 05:22, 17 марта 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L1&quot; &gt;Строка 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Incomplete}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Incomplete}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что такое Papyrus? =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что такое Papyrus? =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Papyrus это язык &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;сценариев&lt;/del&gt;, используемый при создании игры Skyrim. Его работа заключается в получении [[:Category:Events|событий]] из игры, и ответом на них, [[Справка по функциям|вызовая соответствующие функции]]. Это как &amp;quot;клей&amp;quot;, который соединяет вместе [[:Category:Quests|квесты]], устанавливает [[Переменные и Свойства|переменные]] в зависимости от действий игрока, а так же ждет и отвечает на конкретные события в игре. Помимо этого, Papyrus управляет большей частью функциональности [[Activator|анимированных объектов]], которые требуют взаимодействия со стороны игрока или NPC, и большую часть поведения [[Magic Effect|магических эффектов]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Papyrus это &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;скриптовой &lt;/ins&gt;язык, используемый при создании игры Skyrim. Его работа заключается в получении [[:Category:Events|событий]] из игры, и ответом на них, [[Справка по функциям|вызовая соответствующие функции]]. Это как &amp;quot;клей&amp;quot;, который соединяет вместе [[:Category:Quests|квесты]], устанавливает [[Переменные и Свойства|переменные]] в зависимости от действий игрока, а так же ждет и отвечает на конкретные события в игре. Помимо этого, Papyrus управляет большей частью функциональности [[Activator|анимированных объектов]], которые требуют взаимодействия со стороны игрока или NPC, и большую часть поведения [[Magic Effect|магических эффектов]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;По сути, Papyrus является объектно-ориентированным языком. Чтобы понять что это зСкриптовые объектыначит, и что из себя представляет язык в целом, продолжайте читать далее. Пользователям, имеющим опыт разработки в объектно-ориентированных средах программирования, страницы по [[:Category:Скриптовые объекты|скриптовым объектам]] помогут дать представление о том, как все это работает.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;По сути, Papyrus является объектно-ориентированным языком. Чтобы понять что это зСкриптовые объектыначит, и что из себя представляет язык в целом, продолжайте читать далее. Пользователям, имеющим опыт разработки в объектно-ориентированных средах программирования, страницы по [[:Category:Скриптовые объекты|скриптовым объектам]] помогут дать представление о том, как все это работает.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=6005&amp;oldid=prev</id>
		<title>Admin в 05:22, 17 марта 2016</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=6005&amp;oldid=prev"/>
				<updated>2016-03-17T05:22:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 05:22, 17 марта 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L3&quot; &gt;Строка 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Papyrus это язык сценариев, используемый при создании игры Skyrim. Его работа заключается в получении [[:Category:Events|событий]] из игры, и ответом на них, [[Справка по функциям|вызовая соответствующие функции]]. Это как &amp;quot;клей&amp;quot;, который соединяет вместе [[:Category:Quests|квесты]], устанавливает [[Переменные и Свойства|переменные]] в зависимости от действий игрока, а так же ждет и отвечает на конкретные события в игре. Помимо этого, Papyrus управляет большей частью функциональности [[Activator|анимированных объектов]], которые требуют взаимодействия со стороны игрока или NPC, и большую часть поведения [[Magic Effect|магических эффектов]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Papyrus это язык сценариев, используемый при создании игры Skyrim. Его работа заключается в получении [[:Category:Events|событий]] из игры, и ответом на них, [[Справка по функциям|вызовая соответствующие функции]]. Это как &amp;quot;клей&amp;quot;, который соединяет вместе [[:Category:Quests|квесты]], устанавливает [[Переменные и Свойства|переменные]] в зависимости от действий игрока, а так же ждет и отвечает на конкретные события в игре. Помимо этого, Papyrus управляет большей частью функциональности [[Activator|анимированных объектов]], которые требуют взаимодействия со стороны игрока или NPC, и большую часть поведения [[Magic Effect|магических эффектов]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;По сути, Papyrus является объектно-ориентированным языком. Чтобы понять что это &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;значит&lt;/del&gt;, и что из себя представляет язык в целом, продолжайте читать далее. Пользователям, имеющим опыт разработки в объектно-ориентированных средах программирования, страницы по [[:Category:Скриптовые объекты|скриптовым объектам]] помогут дать представление о том, как все это работает.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;По сути, Papyrus является объектно-ориентированным языком. Чтобы понять что это &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;зСкриптовые объектыначит&lt;/ins&gt;, и что из себя представляет язык в целом, продолжайте читать далее. Пользователям, имеющим опыт разработки в объектно-ориентированных средах программирования, страницы по [[:Category:Скриптовые объекты|скриптовым объектам]] помогут дать представление о том, как все это работает.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Что такое скрипт? ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Что такое скрипт? ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L457&quot; &gt;Строка 457:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 457:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here we put the check testing if the alias in question is the quest giver into it's own function &amp;quot;IsQuestGiver&amp;quot; that returns a value (in this case a bool) that we can then use in our comparison check. (Again, this is probably more complex than you would need for a simple function like this, but it illustrates the point that you can return your own values. You could also write a function that returns an actor, a quest, or any other [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Script Objects&lt;/del&gt;|Script Object]]. This can be a big boon in more complex scripting situations.)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here we put the check testing if the alias in question is the quest giver into it's own function &amp;quot;IsQuestGiver&amp;quot; that returns a value (in this case a bool) that we can then use in our comparison check. (Again, this is probably more complex than you would need for a simple function like this, but it illustrates the point that you can return your own values. You could also write a function that returns an actor, a quest, or any other [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Скриптовые объекты&lt;/ins&gt;|Script Object]]. This can be a big boon in more complex scripting situations.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Что мне стоит почитать дальше?=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Что мне стоит почитать дальше?=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L463&quot; &gt;Строка 463:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 463:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Read this page again, and follow the links to get more information about the particulars that might have been glossed over.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Read this page again, and follow the links to get more information about the particulars that might have been glossed over.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Look over the documentation for the language here: [[:Category:Papyrus Language Reference|Papyrus Language Reference category]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Look over the documentation for the language here: [[:Category:Papyrus Language Reference|Papyrus Language Reference category]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Examine the pages in the [[:Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Script Objects&lt;/del&gt;|Script Objects category]] and see what kinds of functions are available to you for different objects.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Examine the pages in the [[:Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Скриптовые объекты&lt;/ins&gt;|Script Objects category]] and see what kinds of functions are available to you for different objects.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Look over some of the other informational pages and tutorials at the top of the [[:Category:Papyrus|Papyrus category page]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Look over some of the other informational pages and tutorials at the top of the [[:Category:Papyrus|Papyrus category page]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Poke around in the editor, and deconstruct things.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Poke around in the editor, and deconstruct things.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=5603&amp;oldid=prev</id>
		<title>Admin: /* Что внутри скриптов? */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=5603&amp;oldid=prev"/>
				<updated>2016-01-22T11:50:05Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Что внутри скриптов?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 11:50, 22 января 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L9&quot; &gt;Строка 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что внутри скриптов? =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что внутри скриптов? =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Язык papyrus можно разделить на несколько понятий: [[:Category:Скриптовые объекты|скриптовые объекты]], [[Справка по функциям|функции (Functions)]], [[:Category:Events|события (Events)]], [[Переменные и Свойства|переменные и свойства]]. Страница [[Script File Structure|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Структура &lt;/del&gt;файлов скриптов]] содержит информацию и примеры по перечисленным понятиям. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Язык papyrus можно разделить на несколько понятий: [[:Category:Скриптовые объекты|скриптовые объекты]], [[Справка по функциям|функции (Functions)]], [[:Category:Events|события (Events)]], [[Переменные и Свойства|переменные и свойства]]. Страница [[Script File Structure|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;структура &lt;/ins&gt;файлов скриптов]] содержит информацию и примеры по перечисленным понятиям. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Каждый скрипт определяется как тип [[:Категория:Скриптовые объекты|объекта]], например &amp;quot;[[:Category:Quests|Quest]]&amp;quot; (Квест), &amp;quot;[[Reference|Reference]]&amp;quot; (Ссылка на экземпляр объекта), &amp;quot;[[:Category:Actor|Actor]]&amp;quot; (Актер), или &amp;quot;[[Book|Book]]&amp;quot; (Книга). &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;По большей части&lt;/del&gt;, названия этих скриптовых объектов точно соответствуют тем, которые можно найти в мастер-файле игры в редакторе.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Каждый скрипт определяется как тип [[:Категория:Скриптовые объекты|объекта]], например &amp;quot;[[:Category:Quests|Quest]]&amp;quot; (Квест), &amp;quot;[[Reference|Reference]]&amp;quot; (Ссылка на экземпляр объекта), &amp;quot;[[:Category:Actor|Actor]]&amp;quot; (Актер), или &amp;quot;[[Book|Book]]&amp;quot; (Книга). &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Чаще всего&lt;/ins&gt;, названия этих скриптовых объектов точно соответствуют тем, которые можно найти в мастер-файле игры в редакторе.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;У этих объектов есть [[Справка по функциям|функции]], которые можно использовать для получения данных, содержащихся в этих объектах из мастер-файла или если эти данные сохранились непосредственно во время игры. Например, вы можете использовать функцию [[GetActorValue - Actor|GetActorValue(&amp;quot;Health&amp;quot;)]] для получения количества единиц здоровья актера в данный момент, и [[ModActorValue - Actor|ModActorValue(&amp;quot;Health&amp;quot;, 50)]] чтобы добавить 50 единиц к &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;единицам здоровья &lt;/del&gt;актера. Так же вы можете использовать функцию [[Kill - Actor|Kill()]] чтобы убить актера. Каждая из этих функций является частью объекта [[Actor Script|Actor &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Script&lt;/del&gt;]]. Если вы попробуете применить функцию Kill() к объекту [[Book Script|Book &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Script&lt;/del&gt;]], то компилятор будет жаловаться на код и не скомпилирует скрипт, выдав ошибку, что функция Kill() не является функцией скрипта Book, потому что в скрипте Book эта функция не определена (''потому что игра не имеет понятия как убить книгу :D'').&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;У этих объектов есть [[Справка по функциям|функции]], которые можно использовать для получения данных, содержащихся в этих объектах из мастер-файла&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;или&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;если эти данные сохранились непосредственно во время игры. Например, вы можете использовать функцию [[GetActorValue - Actor|GetActorValue(&amp;quot;Health&amp;quot;)]] для получения количества единиц здоровья актера в данный момент, и [[ModActorValue - Actor|ModActorValue(&amp;quot;Health&amp;quot;, 50)]] чтобы добавить 50 единиц к &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;здоровью &lt;/ins&gt;актера. Так же вы можете использовать функцию [[Kill - Actor|Kill()]] чтобы убить актера. Каждая из этих функций является частью объекта [[Actor Script|Actor]]. Если вы попробуете применить функцию Kill() к объекту [[Book Script|Book]], то компилятор будет жаловаться на код и не скомпилирует скрипт, выдав ошибку, что функция Kill() не является функцией скрипта Book, потому что в скрипте Book эта функция не определена (''потому что игра не имеет понятия как убить книгу :D'').&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;У скриптов так же есть [[:Category:Events|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;События (Events)&lt;/del&gt;]], которые работают &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;как вызовы &lt;/del&gt;функций, но которые игра сама вызывает на конкретном объекте. Например, есть событие [[OnDeath - Actor|OnDeath()]], которое игра передает скрипту типа [[Actor Script|Actor &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Script&lt;/del&gt;]], прицепленному к объекту, когда актер умер. Это позволяет вам реагировать на игровые события, например, указав завершение квеста после того, как игрок убивает конкретного врага. Поэтому, [[Справка по функциям|функции]], описанные в предыдущем пункте, как правило, вызывается ''внутри'' события.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;У скриптов так же есть [[:Category:Events|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;события&lt;/ins&gt;]], которые работают &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;аналогично вызову &lt;/ins&gt;функций, но которые игра сама вызывает на конкретном объекте. Например, есть событие [[OnDeath - Actor|OnDeath()]], которое игра передает скрипту типа [[Actor Script|Actor]], прицепленному к объекту, когда актер умер. Это позволяет вам реагировать на игровые события, например, указав завершение квеста после того, как игрок убивает конкретного врага. Поэтому, [[Справка по функциям|функции]], описанные в предыдущем пункте, как правило, вызывается ''внутри'' события.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В скрипте так же могут быть [[Переменные и Свойства|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Переменные&lt;/del&gt;]]. Переменная - это значение, которое можно изменять и на которое может ссылаться игра и скрипты. Например, вы хотите хранить чисто, полученное с помощью функции [[GetActorValue - Actor|GetActorValue()]]. С помощью переменной, вы можете хранить эту информацию, и использовать её позже.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В скрипте так же могут быть [[Переменные и Свойства|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;переменные&lt;/ins&gt;]]. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;Переменная&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt;- это значение, которое можно изменять и на которое может ссылаться игра и скрипты. Например, вы хотите хранить чисто, полученное с помощью функции [[GetActorValue - Actor|GetActorValue()]]. С помощью переменной, вы можете хранить эту информацию, и использовать её позже.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Скрипт так же может иметь [[Переменные и Свойства|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Свойства&lt;/del&gt;]], которые функционируют почти так же, как переменные, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;за исключением того, что относительно переменных&lt;/del&gt;, другие скрипты могут получать &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;значения &lt;/del&gt;и задавать их. Свойства так же могут быть изменены в самом редакторе. (''Примечание: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;В действительности &lt;/del&gt;свойства немного более &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;сложные&lt;/del&gt;, чем &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;просто &lt;/del&gt;&amp;quot;переменные, которые можно получить/задать извне&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;,&lt;/del&gt;&amp;quot; но для практических целей, свойства &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;это удобные средства&lt;/del&gt;, с &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;которыми &lt;/del&gt;следует разобраться'').&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Скрипт так же может иметь [[Переменные и Свойства|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;свойства&lt;/ins&gt;]], которые функционируют почти так же, как переменные, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;но в отличии от них&lt;/ins&gt;, другие скрипты могут получать и задавать их &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;значения&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;Свойства&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt;так же могут быть изменены в самом редакторе. (''Примечание: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;На самом деле, &lt;/ins&gt;свойства немного более &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;сложный тип&lt;/ins&gt;, чем &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;простые &lt;/ins&gt;&amp;quot;переменные, которые можно получить/задать извне&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;но для практических целей, свойства &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;очень удобны&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и &lt;/ins&gt;с &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ними обязательно &lt;/ins&gt;следует разобраться'').&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Переменные и Свойства]] могут быть определены как простые структуры, такие как [[Справка по литералам#Булевые литералы|Boolean, Integer, Float, и т.д.]] Но их реальная мощь заключается в том, что они могут быть определены как, и содержать '''любой''' [[:Категория:Скриптовые объекты|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Тип Объекта (Object Type)&lt;/del&gt;]]. Например, скрипт Quest, может иметь свойство, которое содержит указатель на Актера. Если у вас есть указатель на объект в свойстве скрипта, то этот скрипт может запускать функции как на самом этом свойстве, так и на самом объекте, прикрепленном к этому свойству. Например, в скрипте квеста есть свойство с указателем на &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Актера (Actor)&lt;/del&gt;, поэтому можно вызывать функцию Kill() к этому свойству, и в итоге, это убьет актера, на которого оно указывает. Свойства могут быть установлены с помощью скрипта во время его выполнения, или могут быть установлены в редакторе, указав в них нужные объекты.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Переменные и Свойства]] могут быть определены как простые структуры, такие как [[Справка по литералам#Булевые литералы|Boolean, Integer, Float, и т.д.]] Но их реальная мощь заключается в том, что они могут быть определены как, и содержать '''любой''' [[:Категория:Скриптовые объекты|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;тип объекта&lt;/ins&gt;]]. Например, скрипт Quest, может иметь свойство, которое содержит указатель на Актера. Если у вас есть указатель на объект в свойстве скрипта, то этот скрипт может запускать функции как на самом этом свойстве, так и на самом объекте, прикрепленном к этому свойству. Например, в скрипте квеста есть свойство с указателем на &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;актера&lt;/ins&gt;, поэтому можно вызывать функцию &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Kill - Actor|&lt;/ins&gt;Kill()&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;к этому свойству, и в итоге, это убьет актера, на которого оно указывает. Свойства могут быть установлены с помощью скрипта во время его выполнения, или могут быть установлены в редакторе, указав в них нужные объекты.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Ещё важно запомнить то, что скрипты на papyrus запускаются '''только''' в ответ игре или другим скриптам. Поэтому необходимо, чтобы весь код располагался внутри блока [[:Category:Events|Event]], или внутри [[Papyrus Введение#Papyrus Fragments|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Script Fragments&lt;/del&gt;]] как например участок кода в quest stage, или в topic info, об этом позже.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Ещё важно запомнить то, что скрипты на papyrus запускаются '''только''' в ответ игре или другим скриптам. Поэтому необходимо, чтобы весь код располагался внутри блока [[:Category:Events|Event]], или внутри [[Papyrus Введение#Papyrus Fragments|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;скриптовых фрагментов&lt;/ins&gt;]]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;как например участок кода в &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[Вкладка_Quest_Stages|&lt;/ins&gt;quest stage&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]&lt;/ins&gt;, или в topic info, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;но &lt;/ins&gt;об этом позже.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{InDepth|То что мы называем скрипты [[:Category:Скриптовые объекты|'''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Объектами&lt;/del&gt;''' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(Objects)&lt;/del&gt;]] может запутать некоторых людей. Скрипты добавляются к объектам в игре, они описывают их поведение и функциональность. Они являются как-бы &amp;quot;душой&amp;quot; неподвижной трехмерной модели, сделанной из треугольников и покрытой несколькими текстурами, все это позволяет модели более '''реально выглядеть'''. Papyrus скрипты - это то, что делает эту модель '''реальной'''. То, что делает её настоящим, полноценным объектом'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{InDepth|То&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;что мы называем скрипты &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;- &lt;/ins&gt;[[:Category:Скриптовые объекты|'''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;объектами&lt;/ins&gt;''']] может запутать некоторых людей. Скрипты добавляются к объектам в игре, они описывают их поведение и функциональность. Они являются как-бы &amp;quot;душой&amp;quot; неподвижной трехмерной модели, сделанной из треугольников и покрытой несколькими текстурами, все это позволяет модели более '''реально выглядеть'''. Papyrus скрипты - это то, что делает эту модель '''реальной'''. То, что делает её настоящим, полноценным объектом'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Грубо говоря, скрипт это не объект, а скорее его важная часть. Обычно, объект должен быть '''заключен в некоторую оболочку''', содержащуюся в отдельном блоке, который может '''унаследовать''' некоторый функционал из класса родителя, который является, если хотите, более '''абстрактной''' или '''общей''' его версией. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Эта &lt;/del&gt;концепция &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;просто используется &lt;/del&gt;изначально в коде, без скриптового языка, где все, от &amp;quot;вида&amp;quot; до поведения определяется одним, связанным&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/del&gt;отделенным блоком кода, который связан с другими блоками кода. &amp;quot;Настоящие объекты&amp;quot; в игре это те, которые &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ответственны &lt;/del&gt;за показ модели на экране (машинный код добавляется поверх движка Creation Engine), они содержат базовые свойства. Скрипты добавляются к этим объектам, чтобы предоставить игровым дизайнерам простой, универсальный инструмент, определяющий их поведение, не участвуя в бою с механизмами работы движка на низком уровне(машинном), что препятствуют творчеству и производительности. Они наследуют базовый объект, добавляя к нему поведение или изменения его основные свойства (напр. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;начало &lt;/del&gt;анимации в ответ на событие), они не являются объектами сами по себе. Они изменяют объект или добавляют что-то к нему, иногда они содержат &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;большую &lt;/del&gt;часть определения объекта. Но опять же, они не являются '''объектами'''. Вот почему было подчеркнуто, что они точно схожи '''в &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;своем &lt;/del&gt;большинстве''', с предметами, которые можно найти в мастер-файле игры в редакторе.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Грубо говоря, скрипт это не объект, а скорее его важная часть. Обычно, объект должен быть '''заключен в некоторую оболочку''', содержащуюся в отдельном блоке, который может '''унаследовать''' некоторый функционал из класса родителя, который является, если хотите, более '''абстрактной''' или '''общей''' его версией. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Просто эта &lt;/ins&gt;концепция изначально &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;используется &lt;/ins&gt;в коде, без скриптового языка, где все, от &amp;quot;вида&amp;quot; до поведения определяется одним, связанным отделенным блоком кода, который связан с другими блоками кода. &amp;quot;Настоящие объекты&amp;quot; в игре это те, которые &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;отвечают &lt;/ins&gt;за показ модели на экране (машинный код добавляется поверх движка Creation Engine), они содержат базовые свойства. Скрипты добавляются к этим объектам, чтобы предоставить игровым дизайнерам простой, универсальный инструмент, определяющий их поведение, не участвуя в бою с механизмами работы движка на низком уровне (машинном), что препятствуют творчеству и производительности. Они наследуют базовый объект, добавляя к нему поведение или изменения его основные свойства (напр. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;запуск &lt;/ins&gt;анимации в ответ на событие), они не являются объектами сами по себе. Они изменяют объект или добавляют что-то к нему, иногда они содержат &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;бОльшую &lt;/ins&gt;часть определения объекта. Но опять же, они не являются '''объектами'''. Вот почему было подчеркнуто, что они точно схожи '''в большинстве &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;случаев&lt;/ins&gt;''', с предметами, которые можно найти в мастер-файле игры в редакторе.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Так как они добавляют функциональность базовым объектам то они добавляются к ним, и используют объектно-ориентированные [http://ru.wikipedia.org/wiki/Парадигма_программирования парадигмы], такие как наследование (inheritance), абстракция (abstraction) и инкапсуляция (encapsulation) (путем использования свойств, которые, между прочим, служат как механизм получения/установки&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(getter/setter)&lt;/del&gt;), их можно рассматривать как объекты, пока вы держите вышесказанное в голове. '''Они как ниточки у марионетки, вместе они составляют единое целое. Объект.''' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Так как они добавляют функциональность базовым объектам&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;то они добавляются к ним, и используют объектно-ориентированные [http://ru.wikipedia.org/wiki/Парадигма_программирования парадигмы], такие как наследование (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;англ. ''&lt;/ins&gt;inheritance&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;), абстракция (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;англ. ''&lt;/ins&gt;abstraction&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;) и инкапсуляция (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;англ. ''&lt;/ins&gt;encapsulation&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;) (путем использования свойств, которые, между прочим, служат как механизм получения/установки), &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и &lt;/ins&gt;их можно рассматривать как объекты, пока вы держите вышесказанное в голове. '''Они как ниточки у марионетки, вместе они составляют единое целое. Объект.''' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=5080&amp;oldid=prev</id>
		<title>Admin в 19:12, 1 ноября 2015</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=5080&amp;oldid=prev"/>
				<updated>2015-11-01T19:12:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 19:12, 1 ноября 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L27&quot; &gt;Строка 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{InDepth|То что мы называем скрипты [[:Category:Скриптовые объекты|'''Объектами''' (Objects)]] может запутать некоторых людей. Скрипты добавляются к объектам в игре, они описывают их поведение и функциональность. Они являются как-бы &amp;quot;душой&amp;quot; неподвижной трехмерной модели, сделанной из треугольников и покрытой несколькими текстурами, все это позволяет модели более '''реально выглядеть'''. Papyrus скрипты - это то, что делает эту модель '''реальной'''. То, что делает её настоящим, полноценным объектом'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{InDepth|То что мы называем скрипты [[:Category:Скриптовые объекты|'''Объектами''' (Objects)]] может запутать некоторых людей. Скрипты добавляются к объектам в игре, они описывают их поведение и функциональность. Они являются как-бы &amp;quot;душой&amp;quot; неподвижной трехмерной модели, сделанной из треугольников и покрытой несколькими текстурами, все это позволяет модели более '''реально выглядеть'''. Papyrus скрипты - это то, что делает эту модель '''реальной'''. То, что делает её настоящим, полноценным объектом'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Грубо говоря&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, по сути&lt;/del&gt;, скрипт это не объект, а скорее его важная часть. Обычно, объект должен быть '''заключен в некоторую оболочку''', содержащуюся в отдельном блоке, который может '''унаследовать''' некоторый функционал из класса родителя, который является, если хотите, более '''абстрактной''' или '''общей''' его версией. Эта концепция просто используется изначально в коде, без скриптового языка, где все, от &amp;quot;вида&amp;quot; до поведения определяется одним, связанным, отделенным блоком кода, который связан с другими блоками кода. &amp;quot;Настоящие объекты&amp;quot; в игре это те, которые ответственны за показ модели на экране (машинный код добавляется поверх движка Creation Engine), они содержат базовые свойства. Скрипты добавляются к этим объектам, чтобы предоставить игровым дизайнерам простой, универсальный инструмент, определяющий их поведение, не участвуя в бою с механизмами работы движка на низком уровне(машинном), что препятствуют творчеству и производительности. Они &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;расширяют базу объекта&lt;/del&gt;, добавляя к нему поведение или изменения его основные свойства (напр. начало анимации в ответ на событие), они не являются объектами сами по себе. Они изменяют объект или добавляют что-то к нему, иногда они содержат большую часть определения объекта. Но опять же, они не являются '''объектами'''. Вот почему было подчеркнуто, что они точно схожи '''в своем большинстве''', с предметами, которые можно найти в мастер-файле игры в редакторе.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Грубо говоря, скрипт это не объект, а скорее его важная часть. Обычно, объект должен быть '''заключен в некоторую оболочку''', содержащуюся в отдельном блоке, который может '''унаследовать''' некоторый функционал из класса родителя, который является, если хотите, более '''абстрактной''' или '''общей''' его версией. Эта концепция просто используется изначально в коде, без скриптового языка, где все, от &amp;quot;вида&amp;quot; до поведения определяется одним, связанным, отделенным блоком кода, который связан с другими блоками кода. &amp;quot;Настоящие объекты&amp;quot; в игре это те, которые ответственны за показ модели на экране (машинный код добавляется поверх движка Creation Engine), они содержат базовые свойства. Скрипты добавляются к этим объектам, чтобы предоставить игровым дизайнерам простой, универсальный инструмент, определяющий их поведение, не участвуя в бою с механизмами работы движка на низком уровне(машинном), что препятствуют творчеству и производительности. Они &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;наследуют базовый объект&lt;/ins&gt;, добавляя к нему поведение или изменения его основные свойства (напр. начало анимации в ответ на событие), они не являются объектами сами по себе. Они изменяют объект или добавляют что-то к нему, иногда они содержат большую часть определения объекта. Но опять же, они не являются '''объектами'''. Вот почему было подчеркнуто, что они точно схожи '''в своем большинстве''', с предметами, которые можно найти в мастер-файле игры в редакторе.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Так как они добавляют функциональность базовым объектам то они добавляются к ним, и используют объектно-ориентированные [http://ru.wikipedia.org/wiki/Парадигма_программирования парадигмы], такие как наследование (inheritance), абстракция (abstraction) и инкапсуляция (encapsulation) (путем использования свойств, которые, между прочим, служат как механизм получения/установки(getter/setter)), их можно рассматривать как объекты, пока вы держите вышесказанное в голове. '''Они как ниточки у марионетки, вместе они составляют единое целое. Объект.''' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Так как они добавляют функциональность базовым объектам то они добавляются к ним, и используют объектно-ориентированные [http://ru.wikipedia.org/wiki/Парадигма_программирования парадигмы], такие как наследование (inheritance), абстракция (abstraction) и инкапсуляция (encapsulation) (путем использования свойств, которые, между прочим, служат как механизм получения/установки(getter/setter)), их можно рассматривать как объекты, пока вы держите вышесказанное в голове. '''Они как ниточки у марионетки, вместе они составляют единое целое. Объект.''' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L35&quot; &gt;Строка 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Вы будете использовать текстовый редактор для написания скрипта (избранные здесь включают [[Notepad++ Установка|Notepad++]] и [[Sublime Text Установка|Sublime Text]], в скором времени выйдет редактор от skv1991). После того как вы написали скрипт, вам нужно [[Справка по компилятору Papyrus|скомпилировать]] его прежде чем он будет работать в игре.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Вы будете использовать текстовый редактор для написания скрипта (избранные здесь включают [[Notepad++ Установка|Notepad++]] и [[Sublime Text Установка|Sublime Text]], в скором времени выйдет редактор от skv1991). После того как вы написали скрипт, вам нужно [[Справка по компилятору Papyrus|скомпилировать]] его прежде чем он будет работать в игре.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Перед тем, как сесть писать скрипт, нужно подумать, а какой же тип скрипта должен быть. Или, другими словами, какой тип объекта, на котором &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;предполагается &lt;/del&gt;запускать этот скрипт. Как только вы это решите, вы создаете новый скрипт, объявив его в верхней части .psc файла, и что он &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;РАСШИРЯЕТ &lt;/del&gt;базовый скрипт Объекта на &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;котором он базируется&lt;/del&gt;. Например, если вы собираетесь сделать триггер-бокс, который задает переменную, вы создадите скрипт, который &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;расширяет &lt;/del&gt;[[ObjectReference Script|ObjectReference]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Перед тем, как сесть писать скрипт, нужно подумать, а какой же тип скрипта должен быть. Или, другими словами, какой &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;будет &lt;/ins&gt;тип &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;у &lt;/ins&gt;объекта, на котором &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;планируется &lt;/ins&gt;запускать этот скрипт. Как только вы это решите, вы создаете новый скрипт, объявив его в верхней части .psc файла, и что он &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;наследует &lt;/ins&gt;базовый скрипт Объекта&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;на &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;основе которого будет работать&lt;/ins&gt;. Например, если вы собираетесь сделать триггер-бокс, который задает переменную, вы создадите скрипт, который &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;наследует &lt;/ins&gt;[[ObjectReference Script|ObjectReference]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Расширение &lt;/del&gt;скриптов=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Наследование &lt;/ins&gt;скриптов=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Для каждого объекта в игре, который может быть заскриптован, или на который можно указывать через свойство, есть уже соответствующий готовый &amp;quot;базовый&amp;quot; скрипт на Papyrus: смотрите [[:Категория:Скриптовые объекты|Скриптовые объекты]] для ознакомления с тем, какие есть. По сути, игра может дать любой объект, соответствующий типу этого скрипта во время выполнения.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Для каждого объекта в игре, который может быть заскриптован, или на который можно указывать через свойство, есть уже соответствующий готовый &amp;quot;базовый&amp;quot; скрипт на Papyrus: смотрите [[:Категория:Скриптовые объекты|Скриптовые объекты]] для ознакомления с тем, какие есть. По сути, игра может дать любой объект, соответствующий типу этого скрипта во время выполнения.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Например, есть [[ObjectReference Script]]. Таким образом, любой объект типа ObjectReference в игре&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, по существу&lt;/del&gt;, имеет привязанный скрипт типа ObjectReference. Это значит что вы можете определить свойство ObjectReference в скрипте, и указать в нем на любой объект типа ObjectReference, и вызывать любую функцию, касающуюся типа ObjectReference на этом объекте, как например [[Disable - ObjectReference|Disable()]], без необходимости вручную прикреплять скрипт ObjectReference в редакторе к каждому объекту ObjectReference игры, на котором вы хотите вызвать функцию Disable().&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Например, есть [[ObjectReference Script]]. Таким образом, любой объект типа ObjectReference в игре, имеет привязанный скрипт типа ObjectReference. Это значит что вы можете определить свойство ObjectReference в скрипте, и указать в нем на любой объект типа ObjectReference, и вызывать любую функцию, касающуюся типа ObjectReference на этом объекте, как например [[Disable - ObjectReference|Disable()]], без необходимости вручную прикреплять скрипт ObjectReference в редакторе к каждому объекту ObjectReference игры, на котором вы хотите вызвать функцию Disable().&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Однако, вы пишете скрипт&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, скорее всего &lt;/del&gt;потому, что хотите сделать что-то особенное. Ответить на конкретное событие, как например ожидание, когда игрок активирует объект, или сделать что-то в ответ на смерть актера, и т.д. Никакой из &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;давнного&lt;/del&gt;, уже существующего функционала, не находится в скриптах объектов. Впрочем, чтобы компилятор знал с каким типом объекта вы имеете дело, и получал доступ ко всем событиям и &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;функции&lt;/del&gt;, которые уже определены для этого типа объекта, вы '''[[Extending_Scripts_(Papyrus)|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;расширяете&lt;/del&gt;]]''' существующий “базовый” объект-скрипт, и добавляете ему ваш специальный код. (Похожая система есть с классами в языке PHP)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Однако, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;скорее всего &lt;/ins&gt;вы пишете скрипт потому, что хотите сделать что-то особенное. Ответить на конкретное событие, как например ожидание, когда игрок активирует объект, или сделать что-то в ответ на смерть актера, и т.д. Никакой из &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;данного&lt;/ins&gt;, уже существующего функционала, не находится в скриптах объектов. Впрочем, чтобы компилятор знал с каким типом объекта вы имеете дело, и получал доступ ко всем событиям и &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;функциям&lt;/ins&gt;, которые уже определены для этого типа объекта, вы '''[[Extending_Scripts_(Papyrus)|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;наследуете&lt;/ins&gt;]]''' существующий “базовый” объект-скрипт, и добавляете ему ваш специальный код. (Похожая система есть с классами в языке PHP&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, и практически любом языке ООП&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Пример скрипта (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;расширяет &lt;/del&gt;ObjectReference)=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Пример скрипта (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;наследует &lt;/ins&gt;ObjectReference)=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Например, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;скажем &lt;/del&gt;вы хотите установить этап квеста когда игрок &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;касается определенного &lt;/del&gt;триггер-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;бокса&lt;/del&gt;. Вы создали скрипт с названием “MyTriggerBoxScript” который '''[[Extending_Scripts_(Papyrus)|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;расширяет(extends)&lt;/del&gt;]]''' “ObjectReference” и прицепили его к [[reference|ссылке]] на триггер-бокс в окне [[Render Window]]. Затем вы создали свойство с именем MyQuest, и указали в нем на ваш квест в редакторе. Затем, написали свою версию события OnTriggerEnter, которая бы вызывала установку этапа у квеста из свойства myQuest.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Например, вы хотите установить этап квеста когда игрок &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;вошел в определенный &lt;/ins&gt;триггер-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;бокс&lt;/ins&gt;. Вы создали скрипт с названием “MyTriggerBoxScript” который '''[[Extending_Scripts_(Papyrus)|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;наследует&lt;/ins&gt;]]''' “ObjectReference” и прицепили его к [[reference|ссылке]] на триггер-бокс в окне [[Render Window]]. Затем вы создали свойство с именем MyQuest, и указали в нем на ваш квест в редакторе. Затем, написали свою версию события OnTriggerEnter, которая бы вызывала установку этапа у квеста из свойства myQuest.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L63&quot; &gt;Строка 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В приведенном выше примере достаточно много всего происходит, давайте разобьем его на части, проиллюстрируем некоторые моменты и поговорим о новых.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В приведенном выше примере достаточно много всего происходит, давайте разобьем его на части, проиллюстрируем некоторые моменты и поговорим о новых.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Первая строчка любого скрипта начинается с ([[Script_File_Structure#&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Header_Line&lt;/del&gt;|&amp;quot;заголовочной строки&amp;quot;]]) со слова “Scriptname” &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;длагодаря &lt;/del&gt;которому мы говорим компилятору, что скрипт будет иметь следующее название (в данном случае название “MyTriggerBoxScript). Это имя ДОЛЖНО совпадать с именем текстового файла, в котором вы пишете скрипт (в данном случае “MyTriggerBoxScript.psc”). Слово “[[Extending_Scripts_(Papyrus)|extends]]” обозначает что этот скрипт &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;основывается на возможностях &lt;/del&gt;другого скрипта (в данном случае &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;на скрипте &lt;/del&gt;“[[ObjectReference Script|ObjectReference]]”). Это значит что ваш скрипт имеет доступ ко всем функциям и событиям, определенным в “ObjectReference.psc” и вы можете изменять их, или добавить новые в ваш скрипт.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Первая строчка любого скрипта начинается с ([[Script_File_Structure#&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Строка заголовка&lt;/ins&gt;|&amp;quot;заголовочной строки&amp;quot;]]) со слова “Scriptname”&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, благодаря &lt;/ins&gt;которому мы говорим компилятору, что скрипт будет иметь следующее название (в данном случае название “MyTriggerBoxScript). Это имя ДОЛЖНО совпадать с именем текстового файла, в котором вы пишете скрипт (в данном случае “MyTriggerBoxScript.psc”). Слово “[[Extending_Scripts_(Papyrus)|extends]]” обозначает что этот скрипт &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;наследует возможности &lt;/ins&gt;другого скрипта (в данном случае &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;скрипт &lt;/ins&gt;“[[ObjectReference Script|ObjectReference]]”). Это значит что ваш скрипт имеет доступ ко всем функциям и событиям, определенным в “ObjectReference.psc” и вы можете изменять их, или добавить новые в ваш скрипт.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В следующей строке [[Переменные и Свойства#Auto в Свойствах|объявляется &amp;quot;auto&amp;quot; свойство]]. “Свойство”(''англ.'' property) говорит о том,что мы хотим объявить новое свойство,которое будем использовать в нашем скрипте. Quest это тип свойства (другими словами, только объекты типа Quest могут быть записаны в это свойство). MyQuest это имя свойства. Итак, вся вместе строка сообщает компилятору, что “Я хочу знать о свойстве с названием MyQuest, и в нем может находиться только объект типа Quest, и никакой другой.” (Сейчас давайте пропустим ключевое слово “auto”. Просто знайте, что почти всегда пишется слово “auto” в конце каждого свойства, которое вы объявляете. Для полного обсуждения см.: [[Переменные и Свойства#Объявление свойств|Объявление свойств.]])&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В следующей строке [[Переменные и Свойства#Auto в Свойствах|объявляется &amp;quot;auto&amp;quot; свойство]]. “Свойство”(''англ.'' property) говорит о том, что мы хотим объявить новое свойство, которое будем использовать в нашем скрипте. Quest это тип свойства (другими словами, только объекты типа Quest могут быть записаны в это свойство). MyQuest это имя свойства. Итак, вся вместе строка сообщает компилятору, что “Я хочу знать о свойстве с названием MyQuest, и в нем может находиться только объект типа Quest, и никакой другой.” (Сейчас давайте пропустим ключевое слово “auto”. Просто знайте, что почти всегда пишется слово “auto” в конце каждого свойства, которое вы объявляете. Для полного обсуждения см.: [[Переменные и Свойства#Объявление свойств|Объявление свойств.]])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Аналогично и в следующей строке объявляется свойство типа [[Справка по литералам#Целочисленные литералы|integer]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Аналогично и в следующей строке объявляется свойство типа [[Справка по литералам#Целочисленные литералы|integer]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=5079&amp;oldid=prev</id>
		<title>Admin в 10:15, 1 ноября 2015</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=5079&amp;oldid=prev"/>
				<updated>2015-11-01T10:15:38Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 10:15, 1 ноября 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L1&quot; &gt;Строка 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Файл:Symbol_error.png]] '''Статья не закончена!'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{Incomplete}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:Незаконченная статья]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что такое Papyrus? =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что такое Papyrus? =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Papyrus это язык сценариев, используемый при создании игры Skyrim. Его работа заключается в получении [[:Category:Events|событий]] из игры, и ответом на них, [[Справка по функциям|вызовая соответствующие функции]]. Это как &amp;quot;клей&amp;quot;, который соединяет вместе [[:Category:Quests|квесты]], устанавливает [[Переменные и Свойства|переменные]] в зависимости от действий игрока, а так же ждет и отвечает на конкретные события в игре. Помимо этого, Papyrus управляет большей частью функциональности [[Activator|анимированных объектов]], которые требуют взаимодействия со стороны игрока или NPC, и большую часть поведения [[Magic Effect|магических эффектов]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Papyrus это язык сценариев, используемый при создании игры Skyrim. Его работа заключается в получении [[:Category:Events|событий]] из игры, и ответом на них, [[Справка по функциям|вызовая соответствующие функции]]. Это как &amp;quot;клей&amp;quot;, который соединяет вместе [[:Category:Quests|квесты]], устанавливает [[Переменные и Свойства|переменные]] в зависимости от действий игрока, а так же ждет и отвечает на конкретные события в игре. Помимо этого, Papyrus управляет большей частью функциональности [[Activator|анимированных объектов]], которые требуют взаимодействия со стороны игрока или NPC, и большую часть поведения [[Magic Effect|магических эффектов]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=5004&amp;oldid=prev</id>
		<title>Admin в 14:26, 29 октября 2015</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=5004&amp;oldid=prev"/>
				<updated>2015-10-29T14:26:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 14:26, 29 октября 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L3&quot; &gt;Строка 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что такое Papyrus? =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что такое Papyrus? =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Papyrus это язык сценариев, используемый при создании игры Skyrim. Его работа заключается в получении [[:Category:Events|событий]] из игры, и ответом на них, [[Справка по функциям|вызовая соответствующие функции]]. Это как &amp;quot;клей&amp;quot;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;скрепляющий &lt;/del&gt;вместе [[:Category:Quests|квесты]], &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;устанавливая &lt;/del&gt;[[Переменные и Свойства|переменные]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;на основе &lt;/del&gt;действий игрока, а так же &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ожидает &lt;/del&gt;и отвечает на конкретные события &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;из игры&lt;/del&gt;. Помимо этого, Papyrus управляет большей частью функциональности [[Activator|анимированных объектов]], которые требуют взаимодействия со стороны игрока или NPC, и большую часть поведения [[Magic Effect|магических эффектов]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Papyrus это язык сценариев, используемый при создании игры Skyrim. Его работа заключается в получении [[:Category:Events|событий]] из игры, и ответом на них, [[Справка по функциям|вызовая соответствующие функции]]. Это как &amp;quot;клей&amp;quot;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;который соединяет &lt;/ins&gt;вместе [[:Category:Quests|квесты]], &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;устанавливает &lt;/ins&gt;[[Переменные и Свойства|переменные]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;в зависимости от &lt;/ins&gt;действий игрока, а так же &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ждет &lt;/ins&gt;и отвечает на конкретные события &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;в игре&lt;/ins&gt;. Помимо этого, Papyrus управляет большей частью функциональности [[Activator|анимированных объектов]], которые требуют взаимодействия со стороны игрока или NPC, и большую часть поведения [[Magic Effect|магических эффектов]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;По сути, Papyrus является объектно-ориентированным языком. Чтобы понять что это &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;означает&lt;/del&gt;, и что из себя представляет язык в целом, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;читайте дальше&lt;/del&gt;. Пользователям, имеющим опыт в объектно-ориентированных средах программирования, страницы по [[:Category:Скриптовые объекты|скриптовым объектам]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;могут &lt;/del&gt;дать представление о том, как все это работает.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;По сути, Papyrus является объектно-ориентированным языком. Чтобы понять что это &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;значит&lt;/ins&gt;, и что из себя представляет язык в целом, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;продолжайте читать далее&lt;/ins&gt;. Пользователям, имеющим опыт &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;разработки &lt;/ins&gt;в объектно-ориентированных средах программирования, страницы по [[:Category:Скриптовые объекты|скриптовым объектам]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;помогут &lt;/ins&gt;дать представление о том, как все это работает.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Что такое скрипт? ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Что такое скрипт? ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Скрипт на языке papyrus, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;по сути &lt;/del&gt;является простым текстовым документом с исходным кодом ('''.psc''' файл &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(papyrus source file)&lt;/del&gt;), поэтому вы можете использовать любой текстовый редактор чтобы написать и [[Справка по компилятору Papyrus|скомпилировать]] скрипт в формате, понимаемом самой игрой ('''.pex''' файл &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(papyrus executable file)&lt;/del&gt;). Чтобы внести изменения в уже скомпилированный файл, нужно обновить или заменить старый .psc файл, и, перекомпилировать, заменив тем самым устаревший .pex файл.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Скрипт на языке papyrus, является простым текстовым документом с исходным кодом ('''.psc''' файл), поэтому вы можете использовать любой текстовый редактор чтобы написать и [[Справка по компилятору Papyrus|скомпилировать]] скрипт в формате, понимаемом самой игрой ('''.pex''' файл). Чтобы внести изменения в уже скомпилированный файл, нужно обновить или заменить старый .psc файл, и, перекомпилировать &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;его&lt;/ins&gt;, заменив тем самым устаревший .pex файл.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;в скриптах на Papyrus&lt;/del&gt;? =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Что &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;внутри скриптов&lt;/ins&gt;? =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Язык papyrus можно разделить на несколько понятий: [[:Category:Скриптовые объекты|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Скриптовые &lt;/del&gt;объекты]], [[Справка по функциям|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Функции &lt;/del&gt;(Functions)]], [[:Category:Events|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;События &lt;/del&gt;(Events)]], [[Переменные и Свойства]]. Страница [[Script File Structure|Структура &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Файлов Скриптов&lt;/del&gt;]] содержит информацию и примеры по &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;этим &lt;/del&gt;понятиям. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Язык papyrus можно разделить на несколько понятий: [[:Category:Скриптовые объекты|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;скриптовые &lt;/ins&gt;объекты]], [[Справка по функциям|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;функции &lt;/ins&gt;(Functions)]], [[:Category:Events|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;события &lt;/ins&gt;(Events)]], [[Переменные и Свойства&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|переменные и свойства&lt;/ins&gt;]]. Страница [[Script File Structure|Структура &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;файлов скриптов&lt;/ins&gt;]] содержит информацию и примеры по &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;перечисленным &lt;/ins&gt;понятиям. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Каждый скрипт определяется как тип [[:Категория:Скриптовые объекты|объекта]], &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;как &lt;/del&gt;например &amp;quot;[[:Category:Quests|Quest]]&amp;quot; (Квест), &amp;quot;[[Reference|Reference]]&amp;quot; (Ссылка на экземпляр объекта), &amp;quot;[[:Category:Actor|Actor]]&amp;quot;(Актер), или &amp;quot;[[Book|Book]]&amp;quot; (Книга). По большей части, названия этих скриптовых объектов точно соответствуют тем, которые можно найти в мастер-файле игры в редакторе.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Каждый скрипт определяется как тип [[:Категория:Скриптовые объекты|объекта]], например &amp;quot;[[:Category:Quests|Quest]]&amp;quot; (Квест), &amp;quot;[[Reference|Reference]]&amp;quot; (Ссылка на экземпляр объекта), &amp;quot;[[:Category:Actor|Actor]]&amp;quot; (Актер), или &amp;quot;[[Book|Book]]&amp;quot; (Книга). По большей части, названия этих скриптовых объектов точно соответствуют тем, которые можно найти в мастер-файле игры в редакторе.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;У этих объектов есть [[Справка по функциям|функции]], которые можно использовать для получения данных, содержащихся в этих объектах из мастер-файла или если эти данные сохранились непосредственно во время игры. Например, вы можете использовать функцию [[GetActorValue - Actor|GetActorValue(&amp;quot;Health&amp;quot;)]] для получения количества единиц здоровья актера в данный момент, и [[ModActorValue - Actor|ModActorValue(&amp;quot;Health&amp;quot;, 50)]] чтобы добавить 50 единиц к единицам здоровья актера. Так же вы можете использовать функцию [[Kill - Actor|Kill()]] чтобы убить актера. Каждая из этих функций является частью объекта [[Actor Script|Actor Script]]. Если вы попробуете применить функцию Kill() к объекту [[Book Script|Book Script]], то компилятор будет жаловаться на код и не скомпилирует скрипт, выдав ошибку, что функция Kill() не является функцией скрипта Book, потому что в скрипте Book эта функция не определена (''потому что игра не имеет понятия как убить книгу :D'').&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;У этих объектов есть [[Справка по функциям|функции]], которые можно использовать для получения данных, содержащихся в этих объектах из мастер-файла или если эти данные сохранились непосредственно во время игры. Например, вы можете использовать функцию [[GetActorValue - Actor|GetActorValue(&amp;quot;Health&amp;quot;)]] для получения количества единиц здоровья актера в данный момент, и [[ModActorValue - Actor|ModActorValue(&amp;quot;Health&amp;quot;, 50)]] чтобы добавить 50 единиц к единицам здоровья актера. Так же вы можете использовать функцию [[Kill - Actor|Kill()]] чтобы убить актера. Каждая из этих функций является частью объекта [[Actor Script|Actor Script]]. Если вы попробуете применить функцию Kill() к объекту [[Book Script|Book Script]], то компилятор будет жаловаться на код и не скомпилирует скрипт, выдав ошибку, что функция Kill() не является функцией скрипта Book, потому что в скрипте Book эта функция не определена (''потому что игра не имеет понятия как убить книгу :D'').&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=4405&amp;oldid=prev</id>
		<title>Admin: /* Что мне стоит почитать дальше? */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=4405&amp;oldid=prev"/>
				<updated>2014-03-29T11:43:16Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Что мне стоит почитать дальше?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 11:43, 29 марта 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L462&quot; &gt;Строка 462:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 462:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Что мне стоит почитать дальше?=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Что мне стоит почитать дальше?=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Once you grasp the basic concepts on this page&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;next places to go from here&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ПОсле того&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;как вы поняли основные принципы на этой странице, далее следует посмотреть следующие места&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Read this page again, and follow the links to get more information about the particulars that might have been glossed over.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Read this page again, and follow the links to get more information about the particulars that might have been glossed over.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Look over the documentation for the language here: [[:Category:Papyrus Language Reference|Papyrus Language Reference category]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Look over the documentation for the language here: [[:Category:Papyrus Language Reference|Papyrus Language Reference category]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=4404&amp;oldid=prev</id>
		<title>Admin: /* Writing Custom Functions */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=4404&amp;oldid=prev"/>
				<updated>2014-03-29T11:41:49Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Writing Custom Functions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 11:41, 29 марта 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L365&quot; &gt;Строка 365:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 365:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GetOwningQuest() возвращает указатель на тип Quest, слово &amp;quot;As&amp;quot; означает, что объект будет рассматриваться КАК myQuestScript. Ограничивающие скобки () позволяют вам использовать &amp;quot;.&amp;quot; для доступа к дочерним функциям и свойствам преобразованного объекта, таким образом, вы можете вызвать в нем функцию DoSomeStuff().&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GetOwningQuest() возвращает указатель на тип Quest, слово &amp;quot;As&amp;quot; означает, что объект будет рассматриваться КАК myQuestScript. Ограничивающие скобки () позволяют вам использовать &amp;quot;.&amp;quot; для доступа к дочерним функциям и свойствам преобразованного объекта, таким образом, вы можете вызвать в нем функцию DoSomeStuff().&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Writing Custom Functions&lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Написание своих функций&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;We'll get into the nitty gritty of writing Custom functions by looking at an example of something we might want to do while writing a quest&lt;/del&gt;: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;handle the death of the quest giver&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Мы изучим повседневные моменты написания собственных функций, рассмотрев пример того, что мы могли бы хотеть сделать, при написании квеста&lt;/ins&gt;: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;отследить смерть квест-гайвера (того, кто дает квест)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;A function has a start&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;end line &lt;/del&gt;(Function/EndFunction) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;may contain parameter definitions&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;In this case lets create a function called &lt;/del&gt;&amp;quot;HandleQuestGiverDeath&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that takes a parameter of the actor who did the killing&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;so we can do different things if the player killed him&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or something else&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;We'll write this function on a script &lt;/del&gt;&amp;quot;myQuestScript&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that we'll attach to our quest in the editor&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Функция имеет строки начала&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;конца &lt;/ins&gt;(Function/EndFunction) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и может содержать объявление параметров&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;В данном случае, давайте создадим функцию с названием &lt;/ins&gt;&amp;quot;HandleQuestGiverDeath&amp;quot;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;которая принимает в качестве параметра актера, совершившего убийство, таким образом, мы можем делать различные вещи, если игрок убьет квест-гайвера&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;или кто-то ещё&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Мы напишем эту функцию в скрипте &lt;/ins&gt;&amp;quot;myQuestScript&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;который мы прицепили к нашему квесту в редакторе&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L377&quot; &gt;Строка 377:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 377:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ReferenceAlias Property QuestGiverBackup Auto&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ReferenceAlias Property QuestGiverBackup Auto&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; int Property QuestGiverKiller auto conditional&amp;#160; ;0 = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;unset&lt;/del&gt;, 1 = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;player&lt;/del&gt;, -1 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;not the player&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; int Property QuestGiverKiller auto conditional&amp;#160; ;0 = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;не задано&lt;/ins&gt;, 1 = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;игрок&lt;/ins&gt;, -1 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;= не игрок&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; function HandleQuestGiverDeath(Actor Killer, ReferenceAlias DeadActorAlias)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; function HandleQuestGiverDeath(Actor Killer, ReferenceAlias DeadActorAlias)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L396&quot; &gt;Строка 396:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 396:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;A new keyword was introduced in the above example&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;You'll notice the keyword &lt;/del&gt;&amp;quot;Conditional&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on both the &lt;/del&gt;Scriptname &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;line&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;as well as the line declaring the &lt;/del&gt;QuestGiverKiller &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;property&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This allows the &lt;/del&gt;QuestGiverKiller &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;property to be found by the [[GetVMQuestVariable]] &lt;/del&gt;[[:Category:Conditions|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;condition&lt;/del&gt;]], &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;so that you can test the value of this property at run time to filter dialogue stacks to get appropriate dialogue&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;conditionalize package stacks on actors&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;etc&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Having variables like this that track the specifics about what happened is also helpful for debugging as well&lt;/del&gt;. (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;To see the values of scripts at run time see&lt;/del&gt;: [[ShowQuestVars]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;[[ShowVars]])&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;В примере выше было использовано новое ключевое слово&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Вы наверняка заметили слово &lt;/ins&gt;&amp;quot;Conditional&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;на строчке &lt;/ins&gt;Scriptname, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;а так же при объявлении свойства &lt;/ins&gt;QuestGiverKiller. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Это позволяет свойству &lt;/ins&gt;QuestGiverKiller &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;находиться &lt;/ins&gt;[[:Category:Conditions|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;условием]] [[GetVMQuestVariable&lt;/ins&gt;]], &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;таким образом&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;вы можете проверить значение этого свойства во время игрового процесса&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;чтобы отфильтровать стек диалогов и получить соответствующий диалог, &amp;lt;span style=&amp;quot;background:#FF0000;color:#FFF;&amp;quot;&amp;gt;&amp;amp;nbsp; условный пакет стеков &amp;amp;nbsp;&amp;lt;/span&amp;gt; у актера и т&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;д. Когда есть переменные вроде этой, отслеживающие что-то конкретное, что произошло, то это часто помогает в отладке&lt;/ins&gt;. (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Чтобы видеть значения скриптов во время игры, смотри&lt;/ins&gt;: [[ShowQuestVars]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и &lt;/ins&gt;[[ShowVars]])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;So let's look at the function line&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Here you see &lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;function&lt;/del&gt;/EndFunction&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;pair that delineates the section of the script that is in our function&lt;/del&gt;. &amp;quot;HandleQuestGiverDeath&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is the name we are giving our function&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;And everything in between the parentheses &lt;/del&gt;() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;are the parameters we expect any call to &lt;/del&gt;&amp;quot;HandleQuestGiverDeath&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to pass in to the function&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;In this case we are requiring a &lt;/del&gt;&amp;quot;Killer&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;parameter of the type &lt;/del&gt;Actor, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and a &lt;/del&gt;ReferenceAlias &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that we are calling &lt;/del&gt;&amp;quot;DeadActorAlias.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Теперь обратим внимание на строчку функции&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Здесь вы видите пару &lt;/ins&gt;&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Function&lt;/ins&gt;/EndFunction&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ограничивающую участок скрипта внутри нашей функции&lt;/ins&gt;. &amp;quot;HandleQuestGiverDeath&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;это название, которое м дали нашей функции&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;А все что внутри парных скобок &lt;/ins&gt;() &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;это параметры, которые ожидают получения значений при вызове &lt;/ins&gt;&amp;quot;HandleQuestGiverDeath&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;с передачей параметров&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;В этом случае нам нужен параметр &lt;/ins&gt;&amp;quot;Killer&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(т.е. убийцы) типа &lt;/ins&gt;Actor, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и алиас &lt;/ins&gt;ReferenceAlias&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, который мы назвали &lt;/ins&gt;&amp;quot;DeadActorAlias.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let's break down this line:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let's break down this line:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L405&quot; &gt;Строка 405:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 405:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Here we are calling the function&lt;/del&gt;[[ForceRefTo - ReferenceAlias|ForceRefTo]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;which will force a reference into the the alias&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;so it can take on the dialogue and packages of that alias&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The &lt;/del&gt;ForceRefTo &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;function takes a &lt;/del&gt;Reference &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;as a parameter&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;It just so happens that &lt;/del&gt;[[GetReference - ReferenceAlias|GetReference]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;returns a reference&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the reference inside that alias&lt;/del&gt;. So here were are asking the QuestGiverBackup alias &amp;quot;hey, what's the reference that is currently in you?&amp;quot; and then taking that result and passing it into the ForceRefTo function we are calling on QuestGiver alias, so that the QuestGiver alias now has in it the same reference that is in the QuestGiverBackupAlias.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Здесь мы вызываем функцию &lt;/ins&gt;[[ForceRefTo - ReferenceAlias|ForceRefTo]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;которая поместит ссылку в алиас&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;так что она сможет использовать диалоги и пакеты этого алиаса&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Функция &lt;/ins&gt;ForceRefTo &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;принимает в качестве параметра тип &lt;/ins&gt;Reference. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Так уж получилось, что &lt;/ins&gt;[[GetReference - ReferenceAlias|GetReference]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;возвращает ссылку&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;которая находится внутри этого алиаса&lt;/ins&gt;. So here were are asking the QuestGiverBackup alias &amp;quot;hey, what's the reference that is currently in you?&amp;quot; and then taking that result and passing it into the ForceRefTo function we are calling on QuestGiver alias, so that the QuestGiver alias now has in it the same reference that is in the QuestGiverBackupAlias.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now what's missing is the script we attach to the QuestGiverAlias:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now what's missing is the script we attach to the QuestGiverAlias:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=4403&amp;oldid=prev</id>
		<title>Admin: /* Calling custom functions */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=Papyrus_%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5&amp;diff=4403&amp;oldid=prev"/>
				<updated>2014-03-29T11:04:13Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Calling custom functions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 11:04, 29 марта 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L302&quot; &gt;Строка 302:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 302:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''К игровым объектам присоединены базовые скрипты, в зависимости от их типа. Вы можете вызывать функции на конкретных экземплярах этих объектов (вызов функций в их скриптах, или в скрипте, который расширяется), получая указатель на них, и затем вызывая функцию на этом указателе. Указателями могут служить объекты, хранимые в свойствах, или объекты, возвращаемые функциями.'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''К игровым объектам присоединены базовые скрипты, в зависимости от их типа. Вы можете вызывать функции на конкретных экземплярах этих объектов (вызов функций в их скриптах, или в скрипте, который расширяется), получая указатель на них, и затем вызывая функцию на этом указателе. Указателями могут служить объекты, хранимые в свойствах, или объекты, возвращаемые функциями.'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Calling custom functions&lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Вызов своих функций&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Your custom functions will be called just like existing functions&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;You get a pointer to an object with your script attached to it&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and then you call the function on it&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The pointer to the object that has your script attached to it that you will call the function on&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;must be declared as a &lt;/del&gt;''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;type&lt;/del&gt;'' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that is your &lt;/del&gt;''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;script&lt;/del&gt;''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ваши собственные функции можно вызывать так же, как как и существующие&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Вы получаете указатель на объект через прицепленный к нему скрипт&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и затем вызываете на нем функцию&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;У указатель на объект, к которому прицеплен ваш скрипт, где на нем вызывается функция&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;должен быть объявлен с &lt;/ins&gt;''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;типом&lt;/ins&gt;'' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;что и у вашего &lt;/ins&gt;''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;скрипта&lt;/ins&gt;''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;A common practice is to write functions in a script attached to a quest&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;For example&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;lets say you made a script called &lt;/del&gt;&amp;quot;myQuestScript&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and wrote a function called &lt;/del&gt;&amp;quot;DoSomeStuff()&amp;quot;):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Обычной практикой является написание функций в скрипте, привязанном к квесту&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Например&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;допустим вы сделали скрипт с названием &lt;/ins&gt;&amp;quot;myQuestScript&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;и написали функцию &lt;/ins&gt;&amp;quot;DoSomeStuff()&amp;quot;):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L312&quot; &gt;Строка 312:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 312:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Function DoSomeStuff()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Function DoSomeStuff()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; ;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cool stuff happens here&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; ;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;здесь какие-то крутые действия&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; EndFunction&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; EndFunction&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;And then you attach this script to a quest in the game&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;И затем вы прицепляете этот скрипт к квесту в игре&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The script knows about all the functions declared inside it&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;So if you were going to call the &lt;/del&gt;&amp;quot;DoSomeStuff()&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;function in the script above that you attached to the quest&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you could simply call the function&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Скрипт знает обо всех объявленных в нем функциях&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Так что если вы собираетесь вызвать функцию &lt;/ins&gt;&amp;quot;DoSomeStuff()&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;в скрипте выше&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;который прикреплен к квесту, то просто вызовите функцию&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; DoSomeStuff()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; DoSomeStuff()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;But&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;if you were going to call this function somewhere else you will need a pointer to your quest &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;just like we discussed above for base scripts&lt;/del&gt;). &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;However&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you will need to type the pointer to be the &lt;/del&gt;''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;type of your script&lt;/del&gt;''. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Your script's type is the same as the name you declared it in the first line of your script&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;In this case &lt;/del&gt;&amp;quot;myQuestScript.&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Here we are defining a new property of this new type&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Но если вы собираетесь вызвать эту функцию где-то ещё&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;вам нужен указатель на ваш квест &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;так же, как мы говорили про базовые скрипты&lt;/ins&gt;). &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Однако&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;нужно установить тип указателя, как &lt;/ins&gt;''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;тип вашего скрипта&lt;/ins&gt;''. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Тип вашего скрипта такой же, как и его название, объявленное на первой строчке скрипта&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;В данном случае &lt;/ins&gt;&amp;quot;myQuestScript.&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Здесь мы объявляем новое свойство с этим новым типом&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L329&quot; &gt;Строка 329:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 329:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Then you can open the scripts property button and assign it to be that particular &lt;/del&gt;[[:Category:Quests|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Quest&lt;/del&gt;]]. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;For example&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on the &amp;quot;Quest Giver&amp;quot; &lt;/del&gt;[[Вкладка Quest Alias|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;alias&lt;/del&gt;]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;in your &lt;/del&gt;[[:Category:Quests|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;quest&lt;/del&gt;]], &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you added a script that on death of the quest giver&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you want to call &lt;/del&gt;&amp;quot;DoSomeStuff()&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on the quest&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Затем вы можете открыть окно свойств скрипта, используя соответствующую кнопку, и присоединить его к этому конкретному &lt;/ins&gt;[[:Category:Quests|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;квесту&lt;/ins&gt;]]. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Например&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;у &lt;/ins&gt;[[Вкладка Quest Alias|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;алиаса&lt;/ins&gt;]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;Quest Giver&amp;quot; в вашем &lt;/ins&gt;[[:Category:Quests|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;квесте&lt;/ins&gt;]], &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;вы добавляете скрипт, который при его смерти (того, кто дает квест)&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;будет вызывать функцию &lt;/ins&gt;&amp;quot;DoSomeStuff()&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;на квесте&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Let's look at what this might look like&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Here is an example of a script that might be attached to a &amp;quot;Quest Giver&amp;quot; &lt;/del&gt;[[Вкладка Quest Alias|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;alias&lt;/del&gt;]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;in your &lt;/del&gt;[[:Category:Quests|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;quest&lt;/del&gt;]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Давайте посмотрим, как это может выглядеть&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ниже идет пример скрипта, который можно присоединить к &lt;/ins&gt;[[Вкладка Quest Alias|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;алиасу&lt;/ins&gt;]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;Quest Giver&amp;quot; в вашем &lt;/ins&gt;[[:Category:Quests|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;квесте&lt;/ins&gt;]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Scriptname myQuestGiverScript extends Quest&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Scriptname myQuestGiverScript extends Quest&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; myQuestScript Property myQuest Auto&amp;#160; ;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you would point this to your quest in the &amp;quot;Quest Giver&amp;quot; &lt;/del&gt;[[Вкладка Quest Alias|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;alias&lt;/del&gt;]]&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'s script properties tab&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; myQuestScript Property myQuest Auto&amp;#160; ;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;здесь вы указываете на ваш квест во вкладке свойств скрипта у &lt;/ins&gt;[[Вкладка Quest Alias|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;алиаса&lt;/ins&gt;]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;Quest Giver&amp;quot;&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Event OnDeath(Actor akKiller)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Event OnDeath(Actor akKiller)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L345&quot; &gt;Строка 345:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 345:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;There's a shortcut to the above as well&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Because &lt;/del&gt;[[Вкладка Quest Alias|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Aliases&lt;/del&gt;]]&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;es are owned by quests&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;[[Alias Script]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;has the function &lt;/del&gt;&amp;quot;GetOwningQuest()&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on it&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that returns an object of type &lt;/del&gt;Quest, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that is a pointer to the quest the alias is in&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;So you might be tempted to do something like this&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Есть и более короткий пример написанного выше&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Так как &lt;/ins&gt;[[Вкладка Quest Alias|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;алиас&lt;/ins&gt;]]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ы принадлежат квестам&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;у скрипта &lt;/ins&gt;[[Alias Script]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;есть функция &lt;/ins&gt;&amp;quot;GetOwningQuest()&amp;quot;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;которая возвращает объект типа &lt;/ins&gt;Quest, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;который является указателем на квест, содержащий этот алиас&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Таким образом, вы могли бы попытаться сделать что-то вроде этого&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Event OnDeath(Actor akKiller)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Event OnDeath(Actor akKiller)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  GetOwningQuest().DoSomeStuff()&amp;#160; ;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;this results in a compile error&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  GetOwningQuest().DoSomeStuff()&amp;#160; ;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;этот вариант выдаст ошибку компиляции&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; EndEvent&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; EndEvent&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;But that won't work&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;because the object that is returned by &lt;/del&gt;GetOwningQuest() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is the type &lt;/del&gt;Quest. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Which only knows about the functions declared in it&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The compiler will give an error that there is no function called &lt;/del&gt;&amp;quot;DoSomeStuff&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on &lt;/del&gt;Quest. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Your &lt;/del&gt;&amp;quot;DoSomeStuff()&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;function lives in your script called &lt;/del&gt;&amp;quot;myQuestScript.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Но это не сработает&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;потому что объект, возвращаемый в &lt;/ins&gt;GetOwningQuest() &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;имеет тип &lt;/ins&gt;Quest. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Который знает только о функциях, объявленных внутри него&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Компилятор выдаст ошибку, что нет функции с названием &lt;/ins&gt;&amp;quot;DoSomeStuff&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;в &lt;/ins&gt;Quest. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ваша функция &lt;/ins&gt;&amp;quot;DoSomeStuff()&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;находится в вашем скрипте с именем &lt;/ins&gt;&amp;quot;myQuestScript.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Now&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;because &lt;/del&gt;myQuestScript &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;extends &lt;/del&gt;Quest, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;you can make a promise to the compiler that the thing returned by &lt;/del&gt;GetOwningQuest &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;will have your &lt;/del&gt;myQuestScript &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;attached to it&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;You do this by &lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;CASTING&lt;/del&gt;&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;''Quest'' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;object into a &lt;/del&gt;''myQuestScript'' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;object&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Теперь&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;поскольку &lt;/ins&gt;myQuestScript &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;расширяет &lt;/ins&gt;Quest, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;вы можете пообещать компилятору, что предмет, возвращаемый функцией &lt;/ins&gt;GetOwningQuest &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;будет содержать скрипт &lt;/ins&gt;myQuestScript&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, который к нему прицеплен&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Вы делаете это &lt;/ins&gt;&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ПРЕОБРАЗУЯ&lt;/ins&gt;&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(''англ.'' CASTING) объект типа &lt;/ins&gt;''Quest'' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;в объект типа &lt;/ins&gt;''myQuestScript''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L358&quot; &gt;Строка 358:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 358:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Event OnDeath(Actor akKiller)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Event OnDeath(Actor akKiller)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  (GetOwningQuest() As myQuestScript).DoSomeStuff()&amp;#160; ;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;this works&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  (GetOwningQuest() As myQuestScript).DoSomeStuff()&amp;#160; ;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;это сработает&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; EndEvent&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; EndEvent&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GetOwningQuest() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;will return a &lt;/del&gt;Quest, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the word &lt;/del&gt;&amp;quot;As&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;means think of this AS a &lt;/del&gt;myQuestScript. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The enclosing &lt;/del&gt;() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;allow you to use the &lt;/del&gt;&amp;quot;.&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to access on the cast object&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;so you can call &lt;/del&gt;DoSomeStuff() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on it&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GetOwningQuest() &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;возвращает указатель на тип &lt;/ins&gt;Quest, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;слово &lt;/ins&gt;&amp;quot;As&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;означает, что объект будет рассматриваться КАК &lt;/ins&gt;myQuestScript. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ограничивающие скобки &lt;/ins&gt;() &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;позволяют вам использовать &lt;/ins&gt;&amp;quot;.&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;для доступа к дочерним функциям и свойствам преобразованного объекта, таким образом&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;вы можете вызвать в нем функцию &lt;/ins&gt;DoSomeStuff().&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Writing Custom Functions==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Writing Custom Functions==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>