<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Detecting_Clones</id>
	<title>Detecting Clones - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Detecting_Clones"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Detecting_Clones&amp;action=history"/>
	<updated>2026-05-01T11:31:53Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Detecting_Clones&amp;diff=1652&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Detecting_Clones&amp;diff=1652&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:13Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 11:33, 21 июля 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key digida:diff:1.41:old-1651:rev-1652 --&gt;
&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Detecting_Clones&amp;diff=1651&amp;oldid=prev</id>
		<title>scratch&gt;PenguinLover1123: Small</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Detecting_Clones&amp;diff=1651&amp;oldid=prev"/>
		<updated>2021-06-22T18:21:13Z</updated>

		<summary type="html">&lt;p&gt;Small&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In order to detect properties of specific [[clone]]s. a variety of [[list]]s and local [[variable]]s need to be used. Local variables are duplicated with a clone&amp;#039;s properties, but a sprite cannot detect an individual clone&amp;#039;s local variable&amp;#039;s value. However, a clone can detect a sprite, which can therefore send a message to trigger the sprite&amp;#039;s scripts. In order for a sprite to detect the properties of a clone, the clone must use lists in order to &amp;quot;communicate&amp;quot; with the sprite.&lt;br /&gt;
&lt;br /&gt;
For the following scripts, assume the following:&lt;br /&gt;
* &amp;lt;sb&amp;gt;(clones)&amp;lt;/sb&amp;gt; {{-}} a global variable used to count how many clones have been created.&lt;br /&gt;
* &amp;lt;sb&amp;gt;(clone id)&amp;lt;/sb&amp;gt; {{-}} a local variable duplicated with the clone that represents what clone number in chronological order of creation it is.&lt;br /&gt;
* &amp;lt;sb&amp;gt;(quantities::list)&amp;lt;/sb&amp;gt; {{-}} a list used to store the wanted value for each clone.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Sprite1&amp;#039;&amp;#039;&amp;#039; {{-}} the sprite which creates the clones&lt;br /&gt;
These following scripts would go in Sprite1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
delete [all v] of [quantities v]&lt;br /&gt;
set [clones v] to (0)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When creating a clone of Sprite1, use the following script in Sprite1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
add [] to [quantities v]&lt;br /&gt;
change [clones v] by (1)&lt;br /&gt;
create clone of (myself v)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the desired value is a reporter, use this script in Sprite1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when I start as a clone&lt;br /&gt;
set [clone id v] to (clones)&lt;br /&gt;
forever&lt;br /&gt;
replace item (clone id) of [quantities v] with (. . .::grey reporter)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then &amp;lt;sb&amp;gt;(item (x) of [quantities v])&amp;lt;/sb&amp;gt; will return the quantity for the clone with the clone ID x.&lt;br /&gt;
&lt;br /&gt;
If the desired value is a boolean, use this script in Sprite1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when I start as a clone&lt;br /&gt;
set [clone id v] to (clones)&lt;br /&gt;
forever&lt;br /&gt;
replace item (clone id) of [quantities v] with &amp;lt;. . .::grey boolean&amp;gt;&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then &amp;lt;sb&amp;gt;&amp;lt;(item (x) of [quantities v]) = [true]&amp;gt;&amp;lt;/sb&amp;gt; will return the quantity for the clone with the clone ID x.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Advanced Clone Usage]]&lt;br /&gt;
* [[Using Clones for Particle Effects]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;br /&gt;
&lt;br /&gt;
[[ru:Клонирование/Обнаружение клонов]]&lt;br /&gt;
[[ja:クローン情報へのアクセス]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;PenguinLover1123</name></author>
	</entry>
</feed>