<?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=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9</id>
		<title>Меню опций - История изменений</title>
		<link rel="self" type="application/atom+xml" href="https://tesck.ru/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9"/>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;action=history"/>
		<updated>2026-04-07T10:02:17Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>https://tesck.ru/index.php?title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5573&amp;oldid=prev</id>
		<title>Admin: /* Многоуровневое, циклическое меню */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5573&amp;oldid=prev"/>
				<updated>2016-01-21T10:37:51Z</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;Версия 10:37, 21 января 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L98&quot; &gt;Строка 98:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 98:&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;&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;&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;To make a multilevel&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;looping menu with thirty buttons that will not close until a &lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Done&lt;/del&gt;&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;button is pressed&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;use the above method but with an altered &lt;/del&gt;Menu() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;function&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Note that you can jump to a given message by specifying the &lt;/del&gt;aiMessage &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;argument when calling the function&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Sub-options as described in the previous example can be added to the below in the same manner&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Theoretically&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;any number of options can be added with the below structure&lt;/del&gt;. By making it conditional, we can check its property values with MessageBox buttons using [[GetVMScriptVariable]] and pointing to the placed instance of the item this script is attached to. To ensure the player gets said reference, make a property for the specific reference in another script, and add it to the player with [[AddItem]] by passing the reference as akItemToAdd.&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;Готово&lt;/ins&gt;&amp;quot;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;используйте пример выше, но с измененной функцией &lt;/ins&gt;Menu(). &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Обратите внимание, что вы можете перепрыгнуть на нужное сообщение указав его в аргументе ''&lt;/ins&gt;aiMessage&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;. By making it conditional, we can check its property values with MessageBox buttons using [[GetVMScriptVariable]] and pointing to the placed instance of the item this script is attached to. To ensure the player gets said reference, make a property for the specific reference in another script, and add it to the player with [[AddItem]] by passing the reference as akItemToAdd.&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;ScriptName OptionsMenuScript Extends ObjectReference Conditional&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;ScriptName OptionsMenuScript Extends ObjectReference Conditional&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;Actor Property PlayerREF 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;Actor Property PlayerREF Auto&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;Armor Property MenuARMO Auto ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Playable apparel item&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;Armor Property MenuARMO Auto ; &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;Bool Property bFeatureEnabled Auto Conditional ; Toggling of this demonstrated below.&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;Bool Property bFeatureEnabled Auto Conditional ; Toggling of this demonstrated below.&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;GlobalVariable Property DragonsEnabled Auto ; Toggling of this demonstrated below.&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;GlobalVariable Property DragonsEnabled Auto ; Toggling of this demonstrated below.&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=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5572&amp;oldid=prev</id>
		<title>Admin: /* Меню с подпунктами */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5572&amp;oldid=prev"/>
				<updated>2016-01-21T09:51:31Z</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;Версия 09:51, 21 января 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L80&quot; &gt;Строка 80:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 80:&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;				ElseIf aiButton == 2 ; Жареный куриный пони-стейк&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;				ElseIf aiButton == 2 ; Жареный куриный пони-стейк&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;				EndIf&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;				EndIf&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;			ElseIf aiButton == 1 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Lunch&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;			ElseIf aiButton == 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;div&gt;				aiButton = LunchMESG.Show()&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;				aiButton = LunchMESG.Show()&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;				If aiButton == 0 ;&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;				If aiButton == 0 ;&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;L86&quot; &gt;Строка 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 86:&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;				ElseIf aiButton == 2 ; Измельченный пони-сандвич&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;				ElseIf aiButton == 2 ; Измельченный пони-сандвич&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;				EndIf&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;				EndIf&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;			ElseIf aiButton == 2 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Dinner&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;			ElseIf aiButton == 2 ; &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;				aiButton = DinnerMESG.Show()&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;				aiButton = DinnerMESG.Show()&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;				If aiButton == 0 ; Бифштекс из вырезки&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;				If aiButton == 0 ; Бифштекс из вырезки&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=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5571&amp;oldid=prev</id>
		<title>Admin: /* Меню с подпунктами */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5571&amp;oldid=prev"/>
				<updated>2016-01-21T09:51:10Z</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;Версия 09:51, 21 января 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L54&quot; &gt;Строка 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 54:&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;Для этого примера, мы представим подпункты для каждого основного пункта меню. Для создания многоуровневого меню хорошо использовать функцию. Помните, что каждая кнопка может иметь условия, таким образом, можно скрыть &amp;quot;Обед&amp;quot; и &amp;quot;Ужин&amp;quot;, если время для завтрака или скрыть&amp;#160; &amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Лобстера&lt;/del&gt;&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;Обед&amp;quot; и &amp;quot;Ужин&amp;quot;, если время для завтрака или скрыть&amp;#160; &amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Омара&lt;/ins&gt;&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;ScriptName OptionsMenuScript Extends ObjectReference&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;ScriptName OptionsMenuScript Extends ObjectReference&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;L65&quot; &gt;Строка 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 65:&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;Event OnRead()&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;Event OnRead()&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;	Game.DisablePlayerControls(False, False, False, False, False, True) ; Убеждаемся, что MessageBox не вылезает поверх другого меню и не предотвращает нормальное открытие книги.&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;	Game.DisablePlayerControls(False, False, False, False, False, True) ; Убеждаемся, что MessageBox не вылезает поверх другого меню и не предотвращает нормальное открытие книги.&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;	Game.EnablePlayerControls(False, False, False, False, False, True) ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Undo &lt;/del&gt;DisablePlayerControls&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;	Game.EnablePlayerControls(False, False, False, False, False, True) ; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Отменяем &lt;/ins&gt;DisablePlayerControls&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;	Menu()&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;	Menu()&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;EndEvent &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;EndEvent &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;L71&quot; &gt;Строка 71:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 71:&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;Function Menu(Bool abMenu = True, Int aiButton = 0)&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;Function Menu(Bool abMenu = True, Int aiButton = 0)&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;	While abMenu&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;	While abMenu&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;		If aiButton != -1 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Wait for input &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;this can prevent problems if recycling the &lt;/del&gt;aiButton &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;argument in submenus&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;		If aiButton != -1 ; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ждем нажатия кнопки &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;помогает предотвратить проблемы если аргумент &lt;/ins&gt;aiButton &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;			aiButton = MainMenuMESG.Show() ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Main Menu&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;			aiButton = MainMenuMESG.Show() ; &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;			abMenu = False ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;End 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;			abMenu = False ; &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;			If aiButton == 0 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Breakfast&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;			If aiButton == 0 ; &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;				aiButton = BreakfastMESG.Show()&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;				aiButton = BreakfastMESG.Show()&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;				If aiButton == 0 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Sweet Roll &amp;amp; Coffee&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;				If aiButton == 0 ; &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;				ElseIf aiButton == 1 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Pancakes&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Bacon &amp;amp; Eggs&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;				ElseIf aiButton == 1 ; &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;				ElseIf aiButton == 2 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Chicken Fried Pony Steak&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;				ElseIf aiButton == 2 ; &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;				EndIf&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;				EndIf&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;			ElseIf aiButton == 1 ; Lunch&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;			ElseIf aiButton == 1 ; Lunch&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;				aiButton = LunchMESG.Show()&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;				aiButton = LunchMESG.Show()&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;				If aiButton == 0 ;&amp;#160; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Glazed Turkey Sandwich&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;				If aiButton == 0 ;&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;−&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;				ElseIf aiButton == 1 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Grilled Ham Sandwich&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;				ElseIf aiButton == 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;−&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;				ElseIf aiButton == 2 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Shredded Pony Sandwich&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;				ElseIf aiButton == 2 ; &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;				EndIf&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;				EndIf&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;			ElseIf aiButton == 2 ; Dinner&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;			ElseIf aiButton == 2 ; Dinner&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;				aiButton = DinnerMESG.Show()&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;				aiButton = DinnerMESG.Show()&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;				If aiButton == 0 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Filet Mignon&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;				If aiButton == 0 ; &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;				ElseIf aiButton == 1 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Pony Fajitas&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;				ElseIf aiButton == 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;−&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;				ElseIf aiButton == 2 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Lobster&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;				ElseIf aiButton == 2 ; &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;				EndIf&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;				EndIf&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;			EndIf&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;			EndIf&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=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5566&amp;oldid=prev</id>
		<title>Admin в 08:36, 21 января 2016</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5566&amp;oldid=prev"/>
				<updated>2016-01-21T08:36:14Z</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;Версия 08:36, 21 января 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L5&quot; &gt;Строка 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 5:&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;=== Обзор ===&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;Используя функцию [[Show - Message]], можно создать меню опций с любым числом кнопок и/или уровней. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This is enabling as one can maintain but a single plugin with an options menu offering multiple configuration setting rather than necessitating multiple versions&lt;/del&gt;. В этих примерах, мы используем предметы одежды и книгу, но меню можно &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;использовать и настраивать множеством способов&lt;/del&gt;. Для начала, создайте сообщение(я) - объект Message и добавьте/заполните кнопки опциями, которые хотите предложить игроку. Обратите внимание, что на одной форме текстового сообщения не может располагаться более 10 кнопок и что индекс кнопок смещен на один, таким образом у первой кнопки будет индекс 0, а не 1. Если нужно предоставить множество опций, то сначала лучше подумать над тем, как вы хотите организовать опции, подготовить объекты Message, а уже затем подключать их в скрипте.&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;Используя функцию [[Show - Message]], можно создать меню опций с любым числом кнопок и/или уровней. &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;Message&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]''' &lt;/ins&gt;и добавьте/заполните кнопки опциями, которые хотите предложить игроку. Обратите внимание, что на одной форме текстового сообщения не может располагаться более 10 кнопок и что индекс кнопок смещен на один, таким образом у первой кнопки будет индекс 0, а не 1. Если нужно предоставить множество опций, то сначала лучше подумать над тем, как вы хотите организовать опции, подготовить объекты Message, а уже затем подключать их в скрипте.&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;=== {{Example}} ===&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;=== {{Example}} ===&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;L54&quot; &gt;Строка 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 54:&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;For this example&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;we'll offer sub-options for each main selection&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;For a multilevel menu, a function works well&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Keep in mind each button can have conditions&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;so you could hide &lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Lunch&lt;/del&gt;&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Dinner&lt;/del&gt;&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;if it's time for breakfast or hide &lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Lobster&lt;/del&gt;&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;if it's not currently available&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;In this case&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to make it repeatable&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;we'll use a book so the menu will show each time it is read&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;A book cannot be favorited or hotkeyed&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;unlike an apparel item&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;A potion can be hotkeyed&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;but it will be consumed when used and not remain hotkeyed even if immediately replaced&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This example will let the user choose breakfast&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;lunch&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or dinner&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;then close after one meal is selected&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;As your options become fleshed out&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;keep in mind that you can add and use arguments to store information temporarily rather than necessitating declarations of more variables or properties&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;&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;и &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;, если время для завтрака или скрыть&amp;#160; &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;если он сейчас не доступен к приготовлению&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;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;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: 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;ScriptName OptionsMenuScript Extends ObjectReference&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;ScriptName OptionsMenuScript Extends ObjectReference&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;L64&quot; &gt;Строка 64:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 64:&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;Event OnRead()&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;Event OnRead()&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;	Game.DisablePlayerControls(False, False, False, False, False, True) ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Ensure &lt;/del&gt;MessageBox &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is not on top of other menus &amp;amp; prevent book from opening normally&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;	Game.DisablePlayerControls(False, False, False, False, False, True) ; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Убеждаемся, что &lt;/ins&gt;MessageBox &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;	Game.EnablePlayerControls(False, False, False, False, False, True) ; Undo DisablePlayerControls&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;	Game.EnablePlayerControls(False, False, False, False, False, True) ; Undo DisablePlayerControls&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;	Menu()&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;	Menu()&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=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5565&amp;oldid=prev</id>
		<title>Admin: /* Одноуровневое меню */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5565&amp;oldid=prev"/>
				<updated>2016-01-21T08:20:55Z</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;Версия 08:20, 21 января 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;div&gt;=== {{Example}} ===&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;=== {{Example}} ===&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;−&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;For the first examples&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;we'll have only three options&lt;/del&gt;: &amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mage&lt;/del&gt;&amp;quot;, &amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Thief&lt;/del&gt;&amp;quot;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Warrior&lt;/del&gt;&amp;quot;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;An options menu can be accessed many ways&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;a few of which will be demonstrated below&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;&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;&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;Воин&lt;/ins&gt;&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;−&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;First&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;we&lt;/del&gt;'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ll attach the script to an unplayable armor item&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;When the item is added to the player&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the menu will be prompted and will exit as soon as a button is selected&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;executing the appropriate code right after the token is silently removed&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;которое будет скрыто, как только будет нажата кнопка, и будет выполнен соответствующий код сразу после &amp;quot;тихого&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;div&gt;&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;ScriptName OptionsMenuScript Extends ObjectReference&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;ScriptName OptionsMenuScript Extends 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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L20&quot; &gt;Строка 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 20:&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;	If akNewContainer == PlayerREF ; Только для игрока&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;	If akNewContainer == PlayerREF ; Только для игрока&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;		Int iButton = OptionsMESG.Show() ; Показать ваше меню.&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;		Int iButton = OptionsMESG.Show() ; Показать ваше меню.&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;		PlayerREF.RemoveItem(MenuARMO, 1, True) ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Silently remove token&lt;/del&gt;. 'Self' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;does not work in this context&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;thus the property&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;		PlayerREF.RemoveItem(MenuARMO, 1, True) ; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;Тихо&amp;quot; удаляем предмет-маркер&lt;/ins&gt;. 'Self' &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;		If iButton == 0&amp;#160; ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mage&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;		If iButton == 0&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;−&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;			Debug.Notification(&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mage selected&lt;/del&gt;&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;			Debug.Notification(&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Выбран Маг&lt;/ins&gt;&amp;quot;)&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;		ElseIf iButton == 1 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Thief&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;		ElseIf iButton == 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;−&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;			Debug.Notification(&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Thief selected&lt;/del&gt;&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;			Debug.Notification(&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Выбран Вор&lt;/ins&gt;&amp;quot;)&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;		ElseIf iButton == 2 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Warrior&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;		ElseIf iButton == 2 ; &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;			Debug.Notification(&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Warrior selected&lt;/del&gt;&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;			Debug.Notification(&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Выбран Воин&lt;/ins&gt;&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;div&gt;		EndIf&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;		EndIf&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;	EndIf&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;	EndIf&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;EndEvent&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;EndEvent&amp;lt;/source&amp;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;Next&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;we'll show the same menu&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;but prompt it with a spell given to the player&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Note the similarities of these examples and that code can be compartmentalized by creating custom functions&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The &lt;/del&gt;Menu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;function below could be moved to another script of a different type&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;meaning you can offer access to your menu however you see fit&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;Menu&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&amp;#160; lang=&amp;quot;papyrus&amp;quot;&amp;gt;ScriptName OptionsMenuScript Extends ActiveMagicEffect&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;#160; lang=&amp;quot;papyrus&amp;quot;&amp;gt;ScriptName OptionsMenuScript Extends ActiveMagicEffect&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;Actor Property PlayerREF 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;Actor Property PlayerREF Auto&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;Message Property OptionsMESG Auto ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The &lt;/del&gt;Message &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;form that configures the menu buttons&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;Message Property OptionsMESG Auto ; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Форма объекта &lt;/ins&gt;Message &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;Event OnEffectStart(Actor akTarget, Actor akCaster)&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;Event OnEffectStart(Actor akTarget, Actor akCaster)&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;	If akCaster == PlayerREF ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Only the player can open the menu&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;	If akCaster == PlayerREF ; &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;		Menu()&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;		Menu()&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;	EndIf&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;	EndIf&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;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;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;Function Menu(Int aiButton = 0) ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The menu will exit on its own after a selection is made&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;Function Menu(Int aiButton = 0) ; &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;	aiButton = OptionsMESG.Show() ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Shows your menu&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;	aiButton = OptionsMESG.Show() ; &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;	If aiButton == 0&amp;#160; ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mage&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;	If aiButton == 0&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;−&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;		Debug.Notification(&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mage selected&lt;/del&gt;&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;		Debug.Notification(&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Выбран Маг&lt;/ins&gt;&amp;quot;)&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;	ElseIf aiButton == 1 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Thief&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;	ElseIf aiButton == 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;−&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;		Debug.Notification(&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Thief selected&lt;/del&gt;&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;		Debug.Notification(&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Выбран Вор&lt;/ins&gt;&amp;quot;)&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;	ElseIf aiButton == 2 ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Warrior&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;	ElseIf aiButton == 2 ; &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;		Debug.Notification(&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Warrior selected&lt;/del&gt;&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;		Debug.Notification(&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Выбран Воин&lt;/ins&gt;&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;div&gt;	EndIf&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;	EndIf&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;EndFunction&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;EndFunction&amp;lt;/source&amp;gt;&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=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5564&amp;oldid=prev</id>
		<title>Admin в 11:59, 14 января 2016</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5564&amp;oldid=prev"/>
				<updated>2016-01-14T11:59:30Z</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;Версия 11:59, 14 января 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L5&quot; &gt;Строка 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 5:&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;=== Обзор ===&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;Используя функцию [[Show - Message]], &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it is possible to make an options menu with any number of buttons and&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or levels&lt;/del&gt;. This is enabling as one can maintain but a single plugin with an options menu offering multiple configuration setting rather than necessitating multiple versions. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;In these examples&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;we'll use apparel items and a book&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;but a menu can be prompted and managed in a number of ways&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;First&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;create a message&lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;s&lt;/del&gt;) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;form(s) and add&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;fill the buttons with the options you'd like to offer&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Note that no more than ten buttons can be in a message box and that the button indices are offset by one such that the first option's index is &lt;/del&gt;0 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and not &lt;/del&gt;1. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;If offering a lot of options&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it's best to think ahead regarding how you want to organize your options&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;making the message forms first&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;then plugging them into the 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;Используя функцию [[Show - Message]], &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;можно создать меню опций с любым числом кнопок и&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;или уровней&lt;/ins&gt;. This is enabling as one can maintain but a single plugin with an options menu offering multiple configuration setting rather than necessitating multiple versions. &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;- объект Message и добавьте&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;заполните кнопки опциями, которые хотите предложить игроку&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Обратите внимание, что на одной форме текстового сообщения не может располагаться более 10 кнопок и что индекс кнопок смещен на один, таким образом у первой кнопки будет индекс &lt;/ins&gt;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;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;то сначала лучше подумать над тем, как вы хотите организовать опции&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;подготовить объекты Message&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;=== {{Example}} ===&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;=== {{Example}} ===&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;L18&quot; &gt;Строка 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 18:&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;Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)&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;Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)&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;	If akNewContainer == PlayerREF ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Only 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;	If akNewContainer == PlayerREF ; &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;		Int iButton = OptionsMESG.Show() ; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Shows your menu&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;		Int iButton = OptionsMESG.Show() ; &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;		PlayerREF.RemoveItem(MenuARMO, 1, True) ; Silently remove token. 'Self' does not work in this context, thus the property&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;		PlayerREF.RemoveItem(MenuARMO, 1, True) ; Silently remove token. 'Self' does not work in this context, thus the property&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;		If iButton == 0&amp;#160; ; Mage&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;		If iButton == 0&amp;#160; ; Mage&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=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5563&amp;oldid=prev</id>
		<title>Admin: Новая страница: «Category:Скриптинг Category:Papyrus Category:Учебники Papyrus Category:Учебники {{Incomplete}} === Обзор === Исп…»</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=%D0%9C%D0%B5%D0%BD%D1%8E_%D0%BE%D0%BF%D1%86%D0%B8%D0%B9&amp;diff=5563&amp;oldid=prev"/>
				<updated>2016-01-14T11:26:12Z</updated>
		
		<summary type="html">&lt;p&gt;Новая страница: «&lt;a href=&quot;/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A1%D0%BA%D1%80%D0%B8%D0%BF%D1%82%D0%B8%D0%BD%D0%B3&quot; title=&quot;Категория:Скриптинг&quot;&gt;Category:Скриптинг&lt;/a&gt; &lt;a href=&quot;/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:Papyrus&quot; title=&quot;Категория:Papyrus&quot;&gt;Category:Papyrus&lt;/a&gt; &lt;a href=&quot;/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A3%D1%87%D0%B5%D0%B1%D0%BD%D0%B8%D0%BA%D0%B8_Papyrus&quot; title=&quot;Категория:Учебники Papyrus&quot;&gt;Category:Учебники Papyrus&lt;/a&gt; &lt;a href=&quot;/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A3%D1%87%D0%B5%D0%B1%D0%BD%D0%B8%D0%BA%D0%B8&quot; title=&quot;Категория:Учебники&quot;&gt;Category:Учебники&lt;/a&gt; {{Incomplete}} === Обзор === Исп…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Скриптинг]]&lt;br /&gt;
[[Category:Papyrus]]&lt;br /&gt;
[[Category:Учебники Papyrus]]&lt;br /&gt;
[[Category:Учебники]]&lt;br /&gt;
{{Incomplete}}&lt;br /&gt;
=== Обзор ===&lt;br /&gt;
Используя функцию [[Show - Message]], it is possible to make an options menu with any number of buttons and/or levels. This is enabling as one can maintain but a single plugin with an options menu offering multiple configuration setting rather than necessitating multiple versions. In these examples, we'll use apparel items and a book, but a menu can be prompted and managed in a number of ways. First, create a message(s) form(s) and add/fill the buttons with the options you'd like to offer. Note that no more than ten buttons can be in a message box and that the button indices are offset by one such that the first option's index is 0 and not 1. If offering a lot of options, it's best to think ahead regarding how you want to organize your options, making the message forms first, then plugging them into the script.&lt;br /&gt;
&lt;br /&gt;
=== {{Example}} ===&lt;br /&gt;
== Одноуровневое меню ==&lt;br /&gt;
For the first examples, we'll have only three options: &amp;quot;Mage&amp;quot;, &amp;quot;Thief&amp;quot;, and &amp;quot;Warrior&amp;quot;. An options menu can be accessed many ways, a few of which will be demonstrated below.&lt;br /&gt;
*First, we'll attach the script to an unplayable armor item. When the item is added to the player, the menu will be prompted and will exit as soon as a button is selected, executing the appropriate code right after the token is silently removed.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;ScriptName OptionsMenuScript Extends ObjectReference&lt;br /&gt;
&lt;br /&gt;
Actor Property PlayerREF Auto&lt;br /&gt;
Armor Property MenuARMO Auto&lt;br /&gt;
Message Property OptionsMESG Auto&lt;br /&gt;
&lt;br /&gt;
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)&lt;br /&gt;
	If akNewContainer == PlayerREF ; Only the player&lt;br /&gt;
		Int iButton = OptionsMESG.Show() ; Shows your menu.&lt;br /&gt;
		PlayerREF.RemoveItem(MenuARMO, 1, True) ; Silently remove token. 'Self' does not work in this context, thus the property&lt;br /&gt;
		If iButton == 0  ; Mage&lt;br /&gt;
			Debug.Notification(&amp;quot;Mage selected&amp;quot;)&lt;br /&gt;
		ElseIf iButton == 1 ; Thief&lt;br /&gt;
			Debug.Notification(&amp;quot;Thief selected&amp;quot;)&lt;br /&gt;
		ElseIf iButton == 2 ; Warrior&lt;br /&gt;
			Debug.Notification(&amp;quot;Warrior selected&amp;quot;)&lt;br /&gt;
		EndIf&lt;br /&gt;
	EndIf&lt;br /&gt;
EndEvent&amp;lt;/source&amp;gt;&lt;br /&gt;
*Next, we'll show the same menu, but prompt it with a spell given to the player. Note the similarities of these examples and that code can be compartmentalized by creating custom functions. The Menu function below could be moved to another script of a different type, meaning you can offer access to your menu however you see fit.&lt;br /&gt;
&amp;lt;source  lang=&amp;quot;papyrus&amp;quot;&amp;gt;ScriptName OptionsMenuScript Extends ActiveMagicEffect&lt;br /&gt;
&lt;br /&gt;
Actor Property PlayerREF Auto&lt;br /&gt;
Message Property OptionsMESG Auto ; The Message form that configures the menu buttons&lt;br /&gt;
&lt;br /&gt;
Event OnEffectStart(Actor akTarget, Actor akCaster)&lt;br /&gt;
	If akCaster == PlayerREF ; Only the player can open the menu&lt;br /&gt;
		Menu()&lt;br /&gt;
	EndIf&lt;br /&gt;
EndEvent&lt;br /&gt;
&lt;br /&gt;
Function Menu(Int aiButton = 0) ; The menu will exit on its own after a selection is made.&lt;br /&gt;
	aiButton = OptionsMESG.Show() ; Shows your menu.&lt;br /&gt;
	If aiButton == 0  ; Mage&lt;br /&gt;
		Debug.Notification(&amp;quot;Mage selected&amp;quot;)&lt;br /&gt;
	ElseIf aiButton == 1 ; Thief&lt;br /&gt;
		Debug.Notification(&amp;quot;Thief selected&amp;quot;)&lt;br /&gt;
	ElseIf aiButton == 2 ; Warrior&lt;br /&gt;
		Debug.Notification(&amp;quot;Warrior selected&amp;quot;)&lt;br /&gt;
	EndIf&lt;br /&gt;
EndFunction&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Меню с подпунктами ==&lt;br /&gt;
For this example, we'll offer sub-options for each main selection. For a multilevel menu, a function works well. Keep in mind each button can have conditions, so you could hide &amp;quot;Lunch&amp;quot; and &amp;quot;Dinner&amp;quot; if it's time for breakfast or hide &amp;quot;Lobster&amp;quot; if it's not currently available. In this case, to make it repeatable, we'll use a book so the menu will show each time it is read. A book cannot be favorited or hotkeyed, unlike an apparel item. A potion can be hotkeyed, but it will be consumed when used and not remain hotkeyed even if immediately replaced. This example will let the user choose breakfast, lunch, or dinner, then close after one meal is selected. As your options become fleshed out, keep in mind that you can add and use arguments to store information temporarily rather than necessitating declarations of more variables or properties.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;ScriptName OptionsMenuScript Extends ObjectReference&lt;br /&gt;
&lt;br /&gt;
Message Property MainMenuMESG Auto&lt;br /&gt;
Message Property BreakfastMESG Auto&lt;br /&gt;
Message Property LunchMESG Auto&lt;br /&gt;
Message Property DinnerMESG Auto&lt;br /&gt;
&lt;br /&gt;
Event OnRead()&lt;br /&gt;
	Game.DisablePlayerControls(False, False, False, False, False, True) ; Ensure MessageBox is not on top of other menus &amp;amp; prevent book from opening normally.&lt;br /&gt;
	Game.EnablePlayerControls(False, False, False, False, False, True) ; Undo DisablePlayerControls&lt;br /&gt;
	Menu()&lt;br /&gt;
EndEvent &lt;br /&gt;
&lt;br /&gt;
Function Menu(Bool abMenu = True, Int aiButton = 0)&lt;br /&gt;
	While abMenu&lt;br /&gt;
		If aiButton != -1 ; Wait for input (this can prevent problems if recycling the aiButton argument in submenus)&lt;br /&gt;
			aiButton = MainMenuMESG.Show() ; Main Menu&lt;br /&gt;
			abMenu = False ; End the function&lt;br /&gt;
			If aiButton == 0 ; Breakfast&lt;br /&gt;
				aiButton = BreakfastMESG.Show()&lt;br /&gt;
				If aiButton == 0 ; Sweet Roll &amp;amp; Coffee&lt;br /&gt;
				ElseIf aiButton == 1 ; Pancakes, Bacon &amp;amp; Eggs&lt;br /&gt;
				ElseIf aiButton == 2 ; Chicken Fried Pony Steak&lt;br /&gt;
				EndIf&lt;br /&gt;
			ElseIf aiButton == 1 ; Lunch&lt;br /&gt;
				aiButton = LunchMESG.Show()&lt;br /&gt;
				If aiButton == 0 ;  Glazed Turkey Sandwich&lt;br /&gt;
				ElseIf aiButton == 1 ; Grilled Ham Sandwich&lt;br /&gt;
				ElseIf aiButton == 2 ; Shredded Pony Sandwich&lt;br /&gt;
				EndIf&lt;br /&gt;
			ElseIf aiButton == 2 ; Dinner&lt;br /&gt;
				aiButton = DinnerMESG.Show()&lt;br /&gt;
				If aiButton == 0 ; Filet Mignon&lt;br /&gt;
				ElseIf aiButton == 1 ; Pony Fajitas&lt;br /&gt;
				ElseIf aiButton == 2 ; Lobster&lt;br /&gt;
				EndIf&lt;br /&gt;
			EndIf&lt;br /&gt;
		EndIf&lt;br /&gt;
	EndWhile&lt;br /&gt;
EndFunction&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Многоуровневое, циклическое меню == &lt;br /&gt;
To make a multilevel, looping menu with thirty buttons that will not close until a &amp;quot;Done&amp;quot; button is pressed, use the above method but with an altered Menu() function. Note that you can jump to a given message by specifying the aiMessage argument when calling the function. Sub-options as described in the previous example can be added to the below in the same manner. Theoretically, any number of options can be added with the below structure. By making it conditional, we can check its property values with MessageBox buttons using [[GetVMScriptVariable]] and pointing to the placed instance of the item this script is attached to. To ensure the player gets said reference, make a property for the specific reference in another script, and add it to the player with [[AddItem]] by passing the reference as akItemToAdd.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;ScriptName OptionsMenuScript Extends ObjectReference Conditional&lt;br /&gt;
&lt;br /&gt;
Actor Property PlayerREF Auto&lt;br /&gt;
Armor Property MenuARMO Auto ; Playable apparel item&lt;br /&gt;
Bool Property bFeatureEnabled Auto Conditional ; Toggling of this demonstrated below.&lt;br /&gt;
GlobalVariable Property DragonsEnabled Auto ; Toggling of this demonstrated below.&lt;br /&gt;
Message Property OptionsMenu00MESG Auto&lt;br /&gt;
Message Property OptionsMenu01MESG Auto&lt;br /&gt;
Message Property OptionsMenu02MESG Auto&lt;br /&gt;
YourQuestScriptName Property QuestScript Auto ; Is Conditional with a Conditional bQuickening property &lt;br /&gt;
&lt;br /&gt;
Event OnEquipped(Actor akActor)&lt;br /&gt;
	If akActor == PlayerREF&lt;br /&gt;
		Game.DisablePlayerControls(False, False, False, False, False, True) ; Momentarily disable other menus&lt;br /&gt;
		PlayerREF.EquipItem(MenuARMO, True, True) ; Prevent unequip/reequip in favorites until the current menu is resolved&lt;br /&gt;
		Utility.Wait(0.01) ; This ensures equipping the token from the favorites menu works&lt;br /&gt;
		PlayerREF.UnequipItem(MenuARMO, False, True) ; Silently unequip item&lt;br /&gt;
		Game.EnablePlayerControls(False, False, False, False, False, True) ; Undo DisablePlayerControls&lt;br /&gt;
		Menu()&lt;br /&gt;
	EndIf&lt;br /&gt;
EndEvent&lt;br /&gt;
&lt;br /&gt;
Function Menu(Int aiMessage = 0, Int aiButton = 0, Bool abMenu = True)&lt;br /&gt;
	While abMenu&lt;br /&gt;
		If aiButton == -1 ; As above, can prevent problems if recycling aiButton&lt;br /&gt;
		ElseIf aiMessage == 0&lt;br /&gt;
			aiButton = OptionsMenu00MESG.Show()&lt;br /&gt;
			If aiButton &amp;lt; 2 ; Toggle script property. Buttons have opposite GetVMScriptVariable conditions so only the applicable option is given.&lt;br /&gt;
				bFeatureEnabled = !bFeatureEnabled ; Set boolean to whatever it is not&lt;br /&gt;
				If bFeatureEnabled ; == True&lt;br /&gt;
					Debug.Trace(&amp;quot;Featured enabled. Set things up.&amp;quot;)&lt;br /&gt;
				Else ; If bFeatureEnabled == False&lt;br /&gt;
					Debug.Trace(&amp;quot;Featured disabled. Stop doing stuff and clean up.&amp;quot;)&lt;br /&gt;
				EndIf&lt;br /&gt;
			ElseIf aiButton &amp;lt; 4 ; Toggle quest property. Buttons have opposite conditions checking the property value with GetVMQuestVariable.&lt;br /&gt;
				QuestScript.bQuickening = !QuestScript.bQuickening ; Set boolean to whatever it is not&lt;br /&gt;
				If QuestScript.bQuickening ; == True&lt;br /&gt;
					Debug.Trace(&amp;quot;Start polling.&amp;quot;)&lt;br /&gt;
				Else ; If QuestScript.bQuickening == False&lt;br /&gt;
					Debug.Trace(&amp;quot;Stop polling.&amp;quot;)&lt;br /&gt;
				EndIf&lt;br /&gt;
			ElseIf aiButton &amp;lt; 6 ; Toggle DragonsEnabled. Buttons have opposite conditions as above, but checking the global's value with GetGlobalValue.&lt;br /&gt;
				DragonsEnabled.SetValue((!DragonsEnabled.GetValue() As Bool) As Float) ; If 1, set to 0. If 0, set to 1&lt;br /&gt;
				If DragonsEnabled.GetValue() ; != 0&lt;br /&gt;
					Debug.Trace(&amp;quot;Dragons enabled.&amp;quot;)&lt;br /&gt;
				Else ; If DragonsEnabled.GetValue()  == 0&lt;br /&gt;
					Debug.Trace(&amp;quot;Dragons disabled.&amp;quot;)&lt;br /&gt;
				EndIf&lt;br /&gt;
			ElseIf aiButton == 6&lt;br /&gt;
			ElseIf aiButton == 7&lt;br /&gt;
			ElseIf aiButton == 8 ; More&lt;br /&gt;
				aiMessage = 1&lt;br /&gt;
			ElseIf aiButton == 9 ; Done&lt;br /&gt;
				abMenu = False&lt;br /&gt;
			EndIf&lt;br /&gt;
		ElseIf aiMessage == 1&lt;br /&gt;
			aiButton = OptionsMenu01MESG.Show()&lt;br /&gt;
			If aiButton == 0&lt;br /&gt;
			ElseIf aiButton == 1&lt;br /&gt;
			ElseIf aiButton == 2&lt;br /&gt;
			ElseIf aiButton == 3&lt;br /&gt;
			ElseIf aiButton == 4&lt;br /&gt;
			ElseIf aiButton == 5&lt;br /&gt;
			ElseIf aiButton == 6&lt;br /&gt;
			ElseIf aiButton == 7 ; Back&lt;br /&gt;
				aiMessage = 0&lt;br /&gt;
			ElseIf aiButton == 8 ; More&lt;br /&gt;
				aiMessage = 2&lt;br /&gt;
			ElseIf aiButton == 9 ; Done&lt;br /&gt;
				abMenu = False&lt;br /&gt;
			EndIf&lt;br /&gt;
		ElseIf aiMessage == 2&lt;br /&gt;
			aiButton = OptionsMenu02MESG.Show()&lt;br /&gt;
			If aiButton == 0&lt;br /&gt;
			ElseIf aiButton == 1&lt;br /&gt;
			ElseIf aiButton == 2&lt;br /&gt;
			ElseIf aiButton == 3&lt;br /&gt;
			ElseIf aiButton == 4&lt;br /&gt;
			ElseIf aiButton == 5&lt;br /&gt;
			ElseIf aiButton == 6&lt;br /&gt;
			ElseIf aiButton == 7&lt;br /&gt;
			ElseIf aiButton == 8 ; Back&lt;br /&gt;
				aiMessage = 1&lt;br /&gt;
			ElseIf aiButton == 9 ; Done&lt;br /&gt;
				abMenu = False&lt;br /&gt;
			EndIf&lt;br /&gt;
		EndIf&lt;br /&gt;
	EndWhile&lt;br /&gt;
EndFunction&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== {{Notes}} ===&lt;br /&gt;
*Given the buttons in Skyrim are listed from side to side, it is easy to spill over the edges of the user's monitor, particularly if it's a 4:3, in the event either the options are too verbose or there are too many options presented by a single message form. Currently, there's no way to list them from top to bottom as they were in previous Bethesda games. To mitigate this, keep the button text to a minimum and/or make sure to always set up conditions on mutually exclusive buttons to ensure only applicable options are presented.&lt;br /&gt;
*To conditionalize buttons using variables declared in your script/quest, use [[GetVMScriptVariable]] and [[GetVMQuestVariable]].&lt;br /&gt;
*To hide buttons you wish to fill in later, add an impossible condition like 'IsXBox == -1'.&lt;br /&gt;
*For debugging purposes, you could configure hidden menu buttons (in the Message forms) that only show when you set a GlobalVariable flag. For instance, create a GlobalVariable called &amp;quot;myDebugFlag&amp;quot; in the CK. Set a condition on one of your menu buttons to be &amp;quot;GetGlobalValue myDebugFlag == 1&amp;quot;. In your script, have that button activate your debugging function. Now if you set myGlobalValue to 1 in the CK your button will appear in the menu. Before releasing the mod, remember to set myDebugFlag to 0 to keep the button hidden.&lt;br /&gt;
*Conditionalizing MessageBox buttons will not change their indices such that, for instance, button 9 will still execute the &amp;quot;Done&amp;quot; code in the last example even if buttons 0-8 are hidden.&lt;br /&gt;
*To learn how to assign user-created messageboxes as values to the message box Properties defined in the above scripts, see [[Bethesda_Tutorial_Papyrus_Introduction_to_Properties_and_Functions#Hooking_up_the_message_boxes_to_the_properties_in_the_script|the Papyrus tutorial's page on Properties and Functions]]&lt;br /&gt;
*If the Message Property isn't filled in the CK the Show() will always return a 0, '''and the Message will not be shown'''.&lt;br /&gt;
*If the Message is a Notification (without buttons) instead of a Message Box the Show() will return a -1, '''in which case you will never be presented with an options menu'''.&lt;br /&gt;
&lt;br /&gt;
=== {{See Also}} ===&lt;br /&gt;
[[Show - Message]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>