Click the "send" button if no user is currently logged in to send a message. It can only consist of numbers, as cloud variables do not support letters. Clicking the send button will automatically "log" you in as the current Speaker, meaning you have the right to send messages. Others cannot do this during your Speech. Enter any sequence of numbers to send it to the others viewing the project. You can willingly surrender Speaker privileges by typing "exit", "leave", "quit", etc., which will override the process of sending the message. When the "user" cloud variable is 0, that means you can become the Speaker by clicking the Send button. The current Speaker is otherwise stored in the "user" variable, whilst your ID is stored in the "you" variable. If they are the same, it's your right to Speak. You'll be automatically "logged out" if your last sent message was over 1 minute ago, allowing someone else to use the project.
This is a test project that demonstrates the ability to transmit messages across multiple clients using cloud variables. This is not a cloud-based chat room, but rather a protocol for a cloud game; I am trying to perfect the communication using cloud variables, which is clunky to achieve within the undeveloped game itself, and so I wanted to try it out here instead. Although I intend to use this for 2 players at a time, it can theoretically be applied to multiple: the "Speaker" scheme also doesn't need to exist; it just provides the illusion of a conversation. If we want to use Scratch servers to create a real game, we will probably need more sophisticated communication, i.e that occurs in multiple directions.