<?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=GetNthForm_-_ObjectReference</id>
		<title>GetNthForm - ObjectReference - История изменений</title>
		<link rel="self" type="application/atom+xml" href="https://tesck.ru/index.php?action=history&amp;feed=atom&amp;title=GetNthForm_-_ObjectReference"/>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=GetNthForm_-_ObjectReference&amp;action=history"/>
		<updated>2026-04-07T09:38:32Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>https://tesck.ru/index.php?title=GetNthForm_-_ObjectReference&amp;diff=6449&amp;oldid=prev</id>
		<title>Admin: /* {{Parameters}}}} */</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=GetNthForm_-_ObjectReference&amp;diff=6449&amp;oldid=prev"/>
				<updated>2016-04-26T11:00:08Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;{{Parameters}}}}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 11:00, 26 апреля 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L12&quot; &gt;Строка 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== {{Parameters&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;}}&lt;/del&gt;}} ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== {{Parameters}} ==&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 '''Index''' - индекс формы в контейнере&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 '''Index''' - индекс формы в контейнере&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://tesck.ru/index.php?title=GetNthForm_-_ObjectReference&amp;diff=6448&amp;oldid=prev</id>
		<title>Admin: Новая страница: «Category:Скриптинг Category:Papyrus Category:SKSE {{MemberOfSKSEScript|parent=ObjectReference Script}} {{SKSEFunction|1.05.01}}  Возвра…»</title>
		<link rel="alternate" type="text/html" href="https://tesck.ru/index.php?title=GetNthForm_-_ObjectReference&amp;diff=6448&amp;oldid=prev"/>
				<updated>2016-04-26T10:59:54Z</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:SKSE&quot; title=&quot;Категория:SKSE&quot;&gt;Category:SKSE&lt;/a&gt; {{MemberOfSKSEScript|parent=ObjectReference Script}} {{SKSEFunction|1.05.01}}  Возвра…»&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:SKSE]]&lt;br /&gt;
{{MemberOfSKSEScript|parent=ObjectReference Script}}&lt;br /&gt;
{{SKSEFunction|1.05.01}}&lt;br /&gt;
&lt;br /&gt;
Возвращает N-ую форму внутри контейнера относительно общего числа вещей, полученных с помощью [[GetNumItems - ObjectReference|GetNumItems]]. {{SKSERequires}}&lt;br /&gt;
&lt;br /&gt;
== {{Syntax}} ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;br /&gt;
Form Function GetNthForm(Int Index) Native&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== {{Parameters}}}} ==&lt;br /&gt;
* Int '''Index''' - индекс формы в контейнере&lt;br /&gt;
&lt;br /&gt;
== {{Return Value}} ==&lt;br /&gt;
N-ая форма в вызывающем контейнере.&lt;br /&gt;
&lt;br /&gt;
== {{Notes}} ==&lt;br /&gt;
* Параметр Index - является относительным к числу типов форм, не учитывая количество какой-либо конкретной формы. Если в контейнере например лишь десять золотых и факел, функция [[GetNumItems - ObjectReference|GetNumItems]] вернет ''2'', а не ''11'', таким образом, указав в данном примере''3'' в качестве аргумента '''Index''' в нашей функции '''GetNthForm''' вернет ''None''.&lt;br /&gt;
&lt;br /&gt;
== {{Example}} ==&lt;br /&gt;
* Проверяем одиночный контейнер..&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;papyrus&amp;quot;&amp;gt;Form kForm = MQ101AlduinREF.GetNthForm(0)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Установить вес всем ингредиентам в инвентаре игрока на 0.1.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;papyrus&amp;quot;&amp;gt;&lt;br /&gt;
Actor Property PlayerREF Auto&lt;br /&gt;
&lt;br /&gt;
Event SomeEvent()&lt;br /&gt;
	ReweighIngredientsIn(PlayerREF, 0.1)&lt;br /&gt;
EndEvent&lt;br /&gt;
&lt;br /&gt;
Function ReweighIngredientsIn(ObjectReference akContainer, Float afWeight) Global&lt;br /&gt;
	Int iFormIndex = akContainer.GetNumItems()&lt;br /&gt;
	While ( iFormIndex &amp;gt; 0 )&lt;br /&gt;
		iFormIndex -= 1&lt;br /&gt;
		Form kForm = akContainer.GetNthForm(iFormIndex)&lt;br /&gt;
		If ( kForm.GetType() == 30 ) ; Ingredient&lt;br /&gt;
			kForm.SetWeight(afWeight)&lt;br /&gt;
		EndIf&lt;br /&gt;
	EndWhile&lt;br /&gt;
EndFunction&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== {{See Also}} ==&lt;br /&gt;
*[[ObjectReference Script]]&lt;br /&gt;
*[[GetNumItems - ObjectReference|GetNumItems]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>