Discuss Scratch
- Discussion Forums
- » Suggestions
- » Cloud Variables and chat stuff
- GARENCEl
-
Scratcher
6 posts
Cloud Variables and chat stuff
Since we cant have letters in cloud variables then why cant we just type words then let the code turn each letter into a certain number then send it to a different tab so it decodes the numbers (e.g hello = 85121215 then the game decodes it: 8 = h 5 = e 12 = l 12 = l 15 = o then adds up all the letters: hello) and types it in the chat.
Last edited by GARENCEl (April 3, 2024 04:33:06)
- chocolatemarhmellow
-
Scratcher
13 posts
Cloud Variables and chat stuff
That doesn't quite work because if you want to untranslate it, say 1234, you don't know if it is abcd, where ‘1’ and ‘2’ are seperate numbers or if its lcd, where ‘12’ = l. But I think it is possible to get hello to 85121215, but not back.
I mean, if you are a very excellent scratcher and you know what you are doing, sure, you can try, but I am not at that level so I cannot help you with that, but if u want to code it here is the code, I think:
Ect.
Anyways, I hope you get it, where ‘var’ variable is the before (hello) and ‘var2’ is the after (85121215).
The cloud variable is only needed for, say, high scores, or other things that need to be stored on a server. You do not really need them if it is single player, as you can just make a normal variable.
I hope this answered your question, if there are any further issues, feel free to contact me. Thanks,
~Chocolatemarhmellow
I mean, if you are a very excellent scratcher and you know what you are doing, sure, you can try, but I am not at that level so I cannot help you with that, but if u want to code it here is the code, I think:
set [var] to [1]
repeat (length of [word])
add (letter (var) of [word]) to [list.eg.]
change [var] by (1)
end
replace item [a] of [list.eg.] with [1]
replace item [b] of [list.eg.] with [2]
replace item [c] of [list.eg.] with [3]
replace item [d] of [list.eg.] with [4]
set [var2] to (join (item (1) of [list.eg.] :: list) (item (2) of [list.eg.] :: list))
Ect.
Anyways, I hope you get it, where ‘var’ variable is the before (hello) and ‘var2’ is the after (85121215).
The cloud variable is only needed for, say, high scores, or other things that need to be stored on a server. You do not really need them if it is single player, as you can just make a normal variable.
I hope this answered your question, if there are any further issues, feel free to contact me. Thanks,
~Chocolatemarhmellow

Last edited by chocolatemarhmellow (April 3, 2024 05:35:16)
- DangerPuppy10
-
Scratcher
1000+ posts
Cloud Variables and chat stuff
That doesn't quite work because if you want to untranslate it, say 1234, you don't know if it is abcd, where ‘1’ and ‘2’ are seperate numbers or if its lcd, where ‘12’ = l. But I think it is possible to get hello to 85121215, but not back.This is the suggestion forums, not help with scripts.
I mean, if you are a very excellent scratcher and you know what you are doing, sure, you can try, but I am not at that level so I cannot help you with that, but if u want to code it here is the code, I think:set [var] to [1]
repeat (length of [word])
add (letter (var) of [word]) to [list.eg.]
change [var] by (1)
endreplace item [a] of [list.eg.] with [1]
replace item [b] of [list.eg.] with [2]
replace item [c] of [list.eg.] with [3]
replace item [d] of [list.eg.] with [4]set [var2] to (join (item (1) of [list.eg.] :: list) (item (2) of [list.eg.] :: list))
Ect.
Anyways, I hope you get it, where ‘var’ variable is the before (hello) and ‘var2’ is the after (85121215).
The cloud variable is only needed for, say, high scores, or other things that need to be stored on a server. You do not really need them if it is single player, as you can just make a normal variable.
I hope this answered your question, if there are any further issues, feel free to contact me. Thanks,
~Chocolatemarhmellow
- GARENCEl
-
Scratcher
6 posts
Cloud Variables and chat stuff
when the numbers get sent to the different tab, just send the numbers separately with a little bit of time for the programming to decode it
- GARENCEl
-
Scratcher
6 posts
Cloud Variables and chat stuff
I am suggesting this for the coders wanting to make an online chat
- colinmacc
-
Scratcher
1000+ posts
Cloud Variables and chat stuff
Since we cant have letters in cloud variables then why cant we just type words then let the code turn each letter into a certain number then send it to a different tab so it decodes the numbers (e.g hello = 85121215 then the game decodes it: 8 = h 5 = e 12 = l 12 = l 15 = o then adds up all the letters: hello) and types it in the chat.
People use cloud vars for all sorts of different reasons. What you're describing is just one way to encode data in cloud variables.
However your example won't really work as the code will have no way of determining whether 12 means “L”, or whether 12 means “A” and “B”.
What you can do is say that all encoded character data must be 2 digits, so instead of HELLO being stored as 85121215, it will be stored as 0805121215
But this is something for you to do in your scratch code, not for scratch to do. Good luck!
By the way, a chat project like this wouldn't be allowed anyway.
- Jensvp2
-
Scratcher
100+ posts
Cloud Variables and chat stuff
Since we cant have letters in cloud variables then why cant we just type words then let the code turn each letter into a certain number then send it to a different tab so it decodes the numbers (e.g hello = 85121215 then the game decodes it: 8 = h 5 = e 12 = l 12 = l 15 = o then adds up all the letters: hello) and types it in the chat.
No support. Scratch did make it only numbers to make sure you dont make a chat, because lack of filters for bad words. What is allowed, is pre-made sentences.
In Among us by TimmcCool, he made a chat as you can see.
What he made is allowed because you cant write words yourself or order words in a way you want.
- Scratchedbyyou
-
Scratcher
100+ posts
Cloud Variables and chat stuff
The wiki has a tutorial for this.
I am suggesting this for the coders wanting to make an online chatCloud chats where users can freely type are against the rules and are rejected from becoming allowed.
Last edited by Scratchedbyyou (April 23, 2024 15:18:01)
- ilovestories
-
Scratcher
1000+ posts
Cloud Variables and chat stuff
I am suggesting this for the coders wanting to make an online chatOnline chats aren't allowed.
- MagicCoder330
-
Scratcher
1000+ posts
Cloud Variables and chat stuff
for once I wasn't too lazy to grab a quote, but this is rejected on account of this:
Please read the official list of rejected suggestions before posting in suggestions.
3.1 Chat projects with cloud variables
Although it is possible to make a chat project using cloud variables, it is not allowed to make such a project. This is because there is a high potential for bullying and inappropriate messages, and the Scratch Team does not have the resources to moderate these chat rooms.
Chat projects on Scratch which contained a whitelist (that is, the user could only chat using certain words) used to be allowed on Scratch. Over time, however, the moderation issues got too high, and some users attempted to use such projects to get around the Community Guidelines. As a result, the Scratch Team has decided that these kinds of projects are not allowed on the Scratch website, even if they contain a whitelist of words. However, whitelisted phrases are okay, provided that users cannot freely write their own sentences using the cloud chat project.
Please read the official list of rejected suggestions before posting in suggestions.
- Discussion Forums
- » Suggestions
-
» Cloud Variables and chat stuff