Discuss Scratch

kittyOwU
Scratcher
31 posts

Chat System For Multiplayer

I wanted to ask how I would make a chat box where you could type anything so everyone near you can see it. how would I encode this into numbers to send on cloud? Also how would I make a sensoring system similar to the one on roblox. (it sensors gibberish, hurtful speech, and swears)

If anyone can find out how then I think it would be fun to have an rp game with actual chat.

whenIreceivethey wanna talkaskwhat do u wanna sayandwaitencodeanswer

defineencode...turnlettersintonumbersthatcanbedecodedwithanotherscript
lgrov44
Scratcher
500+ posts

Chat System For Multiplayer

I'll represent this with a “1” and “2” corresponding to the first and 2nd one. Note that this is only allowable if it is restricted to specific pre-chosen phrases and sentences and must follow Terms of Use.
1. See here.
2. There are many methods to this, but I personally use this one:
Temp (list) - List of forbidden words/phrases.
Temp (variable) - String of text to test.
Temp3 - Inappropriateness detected?
whenclickedsetTemp3toFalsesetTemp2torepeatlengthofTempchangeTemp2by1ifTempcontainsitemTemp2oflist?thensetTemp3toTrue

Last edited by lgrov44 (June 25, 2024 02:42:00)

ThisIsTemp1
Scratcher
1000+ posts

Chat System For Multiplayer

Is not allowed, even with a chat filter, because it would be impractical to find every phrase that is bad. There are things that the filter can not pick up like “You should never be able to play this game because you’re Asian!” or something like that. scratch team please do not ban me it was just an random example
ohgreat345
Scratcher
0 posts

Chat System For Multiplayer

whenclicked
saymake a list
ThisIsTemp1
Scratcher
1000+ posts

Chat System For Multiplayer

ohgreat345 wrote:

whenclicked
saymake a list


Please do not use just blocks in a post, and actually meaningfully contribute to the question at hand.
Dagriffpatchfan
Scratcher
1000+ posts

Chat System For Multiplayer

ThisIsTemp1 wrote:

Is not allowed, even with a chat filter, because it would be impractical to find every phrase that is bad. There are things that the filter can not pick up like “You should never be able to play this game because you’re Asian!” or something like that. scratch team please do not ban me it was just an random example
Exactly, see this for more on why it is not allowed. Everybody says, but it's safe… there's no way for the ST to know
kittyOwU
Scratcher
31 posts

Chat System For Multiplayer

ok ty for telling me that its against tos but also… would it be allowed to have preset words and then u can tap buttons to combine them into sentence to send? (btw I do know how I would do this)
Koamodo975
Scratcher
1000+ posts

Chat System For Multiplayer

kittyOwU wrote:

ok ty for telling me that its against tos but also… would it be allowed to have preset words and then u can tap buttons to combine them into sentence to send? (btw I do know how I would do this)
Well, if it was regulated(each word has it's own small set of other words to use) that would be okay.
Dagriffpatchfan
Scratcher
1000+ posts

Chat System For Multiplayer

Koamodo975 wrote:

kittyOwU wrote:

ok ty for telling me that its against tos but also… would it be allowed to have preset words and then u can tap buttons to combine them into sentence to send? (btw I do know how I would do this)
Well, if it was regulated(each word has it's own small set of other words to use) that would be okay.
Phrase based, white listed words are not ok, you could have something like this. You click on hi and then you can choose ti say hi or friend… see griffpatchs MMOs for example phrases. For encoding, see this tutorial or this project.
kittyOwU
Scratcher
31 posts

Chat System For Multiplayer

alr thanks for telling me (:
KryptoniteAwesomeGuy
Scratcher
3 posts

Chat System For Multiplayer

hello
ridleythedog
Scratcher
11 posts

Chat System For Multiplayer

In the rules sadly I don't think we are allowed to make an online chat although I am making a project capable of being an online chat.

Last edited by ridleythedog (Sept. 7, 2024 00:54:48)

ridleythedog
Scratcher
11 posts

Chat System For Multiplayer

I wish this worked
definesaveaddresssetaddresstosave

Last edited by ridleythedog (Sept. 7, 2024 01:03:39)

ridleythedog
Scratcher
11 posts

Chat System For Multiplayer

kittyOwU wrote:

I wanted to ask how I would make a chat box where you could type anything so everyone near you can see it. how would I encode this into numbers to send on cloud? Also how would I make a sensoring system similar to the one on roblox. (it sensors gibberish, hurtful speech, and swears)

If anyone can find out how then I think it would be fun to have an rp game with actual chat.

use this:
https://scratch.mit.edu/projects/1064490843
but it cannot ceneor

Last edited by ridleythedog (Sept. 7, 2024 03:46:59)

bsteichman
Scratcher
500+ posts

Chat System For Multiplayer

ThisIsTemp1 wrote:

Is not allowed, even with a chat filter, because it would be impractical to find every phrase that is bad. There are things that the filter can not pick up like “You should never be able to play this game because you’re Asian!” or something like that. scratch team please do not ban me it was just an random example
while you're right that its against the rules, it's surprisingly simple to filter for bad words:
iftranslateanswertoEnglish=thensayno bad words >:( returns blank when bad word is inside
cosmosaura
Scratch Team
1000+ posts

Chat System For Multiplayer

kittyOwU wrote:

alr thanks for telling me (:
Glad you found an answer! Since this is resolved, I'll close it to help highlight the answer and prevent future responses. If you need it re-opened, though, you can report this and ask.

Powered by DjangoBB