<?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=Simple_Username_Cloud_List</id>
	<title>Simple Username Cloud List - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Simple_Username_Cloud_List"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Simple_Username_Cloud_List&amp;action=history"/>
	<updated>2026-06-13T16:35:58Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Simple_Username_Cloud_List&amp;diff=1730&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Simple_Username_Cloud_List&amp;diff=1730&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:15Z</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;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&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;2&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;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Simple_Username_Cloud_List&amp;diff=1729&amp;oldid=prev</id>
		<title>scratch&gt;TheTrillion: /* See Also */</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Simple_Username_Cloud_List&amp;diff=1729&amp;oldid=prev"/>
		<updated>2021-07-05T15:15:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See Also&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cloud Data}}&lt;br /&gt;
This page will shows how to make a relatively &amp;#039;&amp;#039;&amp;#039;simple username cloud list&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Variables and Lists (Part one: Encoding) ==&lt;br /&gt;
Create two lists: one for characters (letters, numbers, etc.), and another for the players. The player list will be the only one shown in the final product, so a suitable name would be &amp;quot;Players&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Next, create another two variables. The names of these do not matter, because they will not show, but make sure they can be easily distinguished.&lt;br /&gt;
&lt;br /&gt;
You also need 2 cloud variables. One is the encoded username, the other is the next available slot in the list, set to 1.&lt;br /&gt;
&lt;br /&gt;
== Character List ==&lt;br /&gt;
Next, add this script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when flag clicked&lt;br /&gt;
delete all of [Characters v]&lt;br /&gt;
set [item v] to [1]&lt;br /&gt;
set [chars v] to [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-_]&lt;br /&gt;
repeat (( length of (chars)) + (1))&lt;br /&gt;
  add (letter (item) of (chars)) to [Characters v]&lt;br /&gt;
  change [item v] by (1)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Username Adding Script ==&lt;br /&gt;
Create the following script to encode a Scratcher&amp;#039;s username.&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when I receive [Add Username v]&lt;br /&gt;
set [Variable 1 v] to [1]&lt;br /&gt;
if &amp;lt;not &amp;lt;[Players v] contains (username)?&amp;gt;&amp;gt; then&lt;br /&gt;
if &amp;lt;not &amp;lt;(username) = [ ]&amp;gt;&amp;gt; then&lt;br /&gt;
repeat (length of (username))&lt;br /&gt;
find character (letter (Variable 1) of (username))::custom&lt;br /&gt;
change [Variable 1 v] by [1]&lt;br /&gt;
end&lt;br /&gt;
set [☁ CLOUD DATA v] to (join (☁ CLOUD DATA) [00])&lt;br /&gt;
replace item (☁ current slot) of [Players v] with (username)&lt;br /&gt;
if &amp;lt;not &amp;lt;[Players v] contains (username)?&amp;gt;&amp;gt; then&lt;br /&gt;
change [☁ current slot v] by (1)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following definition hat; its code will be added later.&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
define find character (character)::custom&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use this script if manually adding names is necessary:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
repeat (length of (name)) // &amp;quot;name&amp;quot; holds the username that someone want to add.&lt;br /&gt;
find character (letter (Variable 1) of (name)) ::custom&lt;br /&gt;
change [Variable 1 v] by [1]&lt;br /&gt;
end&lt;br /&gt;
set [☁ CLOUD DATA v] to (join (☁ CLOUD DATA) [00])&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Define Find Character Script ==&lt;br /&gt;
Now, add the first define script. It should look like this:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
// The below should have already been created.&lt;br /&gt;
define find character (character)&lt;br /&gt;
set [Variable 2 v] to [1]&lt;br /&gt;
repeat until &amp;lt;(item (Variable 2) of [Characters v] :: list) = (character)&amp;gt;&lt;br /&gt;
change [Variable 2 v] by (1)&lt;br /&gt;
end&lt;br /&gt;
if &amp;lt;(Variable 2) &amp;lt; [10]&amp;gt; then&lt;br /&gt;
  set [☁ CLOUD DATA v] to (join (☁ CLOUD DATA) (join [0] (Variable 2)))&lt;br /&gt;
else&lt;br /&gt;
  set [☁ CLOUD DATA v] to (join (☁ CLOUD DATA) (Variable 2))&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Variables and Lists (Part two: Decoding) ==&lt;br /&gt;
Create five more normal variables. This tutorial names them as follows:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
(data item)&lt;br /&gt;
(decoded)&lt;br /&gt;
(build username)&lt;br /&gt;
(uv1)&lt;br /&gt;
(uv2)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Main Script ==&lt;br /&gt;
Now, add this script:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when flag clicked&lt;br /&gt;
delete all of [Players v]&lt;br /&gt;
set [uv1 v] to [1]&lt;br /&gt;
set [uv2 v] to [2]&lt;br /&gt;
set [data item v] to [01]&lt;br /&gt;
repeat (450)&lt;br /&gt;
decode character::custom&lt;br /&gt;
wait (0.05) secs&lt;br /&gt;
if &amp;lt;(data item) = [ ]&amp;gt; then&lt;br /&gt;
broadcast (Add Username v)&lt;br /&gt;
stop [this script v]&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
broadcast (Add Username v)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{note|The number &amp;quot;450&amp;quot; in the repeat block does not have to be 450; &amp;lt;br/&amp;gt;&lt;br /&gt;
It can be anything, but just keep in mind that this number is the maximum amount of usernames that will be added to the Players list. If this number is 35 and a 36th [[Scratcher]] clicks the green flag and gets their username data saved then clicks the flag again, it will send duplicate data. Keep this number higher than the total views of the [[project]].}}&lt;br /&gt;
&lt;br /&gt;
== Decoding Blocks ==&lt;br /&gt;
This is the last script. It is also the most complicated.&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
define decode character::custom&lt;br /&gt;
set [build username v] to [ ]&lt;br /&gt;
if &amp;lt;(☁ CLOUD DATA) = [ ]&amp;gt; then&lt;br /&gt;
stop [this script v]&lt;br /&gt;
end&lt;br /&gt;
repeat until &amp;lt;(decoded) = [00]&amp;gt;&lt;br /&gt;
set [data item v] to (join (letter (uv1) of (☁ CLOUD DATA)) (letter (uv2) of (☁ CLOUD DATA)))&lt;br /&gt;
set [decoded v] to (item (data item) of [Characters v])&lt;br /&gt;
set [build username v] to (join (build username) (decoded))&lt;br /&gt;
change [uv1 v] by (2)&lt;br /&gt;
change [uv2 v] by (2)&lt;br /&gt;
if &amp;lt;(join (letter (uv1) of (☁ CLOUD DATA)) (letter (uv2) of (☁ CLOUD DATA)))=()&amp;gt; then&lt;br /&gt;
stop [this script v]&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
add (build username) to [Players v]&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Global High Scores]]&lt;br /&gt;
* [[Cloud Data]]&lt;br /&gt;
* [[Encoding and Decoding Cloud Data]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Variables and List Tutorials]]&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;TheTrillion</name></author>
	</entry>
</feed>