Discuss Scratch

Imake_coolgames
Scratcher
12 posts

Sending Messages to Player

Im making a scratch mail sorta game, and i wanted to make it that you can send messages to players. *Dont worry, its not free chat* I want to know how do will i make this.

Lets say i send a message to timothycool3491, if he opened this project, and opened to his messages he would see the message that i had sent *There are responses in the game, NOT free chat* How do you suppose i make this?
mra26b25c2
Scratcher
24 posts

Sending Messages to Player

I think this isn't possible with just cloud variables.

You can only use 10 cloud variables per project and each has a maximum of 256 characters (which need to be numbers). But you would need to save more than that. If you want to send a message to timothycool3491 you would need to save:
1) The message. If you want to use only responses you may only need 1 character.
2) The username. You need to encrypt the username because you can only use numbers. For example you could use 00 to signalize the end of an username-message-pair (You need to separate them somehow.), 01 for A, 02 for B, …, 26 for Z, 27 for 0, 28 for 1, …, 36 for 9, 37 for - and 38 for _. Because timothycool3491 has 15 characters you would need 30 characters in a cloud variable (If you encrypt it like I said.).
That's a total of 32 characters for only 1 message (plus a 00 to determine the end of the message-username-pair)! So you could handle only about 80 messages at once.
And it could happen that someone just clears every cloud variable and all messages are gone. You can't avoid this if you are only using cloud variables.
It may be also dangerous for you because chats without a whitelist are strictly forbidden and you may get banned.

I'm sorry but I think it isn't possible. But I understand, it would be really cool!

PS: You may ask yourself how other projects like this work. I'm not sure but I think they are using external servers to connect to the scratch project. They are then communicating via cloud variables but everything happens outside the project.
Arctevious
Scratcher
500+ posts

Sending Messages to Player

mra26b25c2 wrote:

I think this isn't possible with just cloud variables.

You can only use 10 cloud variables per project and each has a maximum of 256 characters (which need to be numbers). But you would need to save more than that. If you want to send a message to timothycool3491 you would need to save:
1) The message. If you want to use only responses you may only need 1 character.
2) The username. You need to encrypt the username because you can only use numbers. For example you could use 00 to signalize the end of an username-message-pair (You need to separate them somehow.), 01 for A, 02 for B, …, 26 for Z, 27 for 0, 28 for 1, …, 36 for 9, 37 for - and 38 for _. Because timothycool3491 has 15 characters you would need 30 characters in a cloud variable (If you encrypt it like I said.).
That's a total of 32 characters for only 1 message (plus a 00 to determine the end of the message-username-pair)! So you could handle only about 80 messages at once.
And it could happen that someone just clears every cloud variable and all messages are gone. You can't avoid this if you are only using cloud variables.
It may be also dangerous for you because chats without a whitelist are strictly forbidden and you may get banned.

I'm sorry but I think it isn't possible. But I understand, it would be really cool!

PS: You may ask yourself how other projects like this work. I'm not sure but I think they are using external servers to connect to the scratch project. They are then communicating via cloud variables but everything happens outside the project.
this is incorrect, i have made an unallowed cloud chat (that did closed down) and know everything there is to know about these pesky variables… for one, cloud variables can ONLY we changed as a result of game action that has not been edited, scratch team made sure of this by implementing a token seal that breaks when a block is moved in the editor. if this token is broken it will not save the cloud variable as a cloud variable anymore, but only as an experimental variable now. this does reset when the page is reset, which does make for some round abouts to the token seal, but its way to complicated for the average joe who knows nothing about web page design. anyway point being is this is possible, you just need to make things smaller, and what mra said is party true, it is in fact going to take a bit of charactors to maintain a cloud string that long. but the way around that is cataloged data via a second shrinking :>

none the less good answer, mra, it was detailed and explained a lot, but i can assure you 100% that it is definitely possible, just difficult.
_love_dragons_
Scratcher
1 post

Sending Messages to Player

I want to see if anyone follows an account called zoroark_1436 and how can i message him or her and if your friends with him or please tell them to message my account _love_dragons_
Blobfish_Industries
Scratcher
100+ posts

Sending Messages to Player

_love_dragons_ wrote:

I want to see if anyone follows an account called zoroark_1436 and how can i message him or her and if your friends with him or please tell them to message my account _love_dragons_

Please don't necropost guys.

Google AI Overview wrote:

Necroposting is the act of replying to an old, inactive thread on a forum, blog, or message board, causing it to reappear at the top of the list

Powered by DjangoBB