This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-03-07 21:01:09

Bklecka
Scratcher
Registered: 2011-08-27
Posts: 1000+

simple chat script

ok im making a chat program in BYOB and i want to do something interesting
i want a list of words you CAN say not a list of words you CANT say
i cant do this with any scripts i have tried plz help me


http://i48.tinypic.com/106ijc9.jpg

Offline

 

#2 2012-03-07 21:46:37

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: simple chat script

ask [say something] and wait
set [i] to (0)
set [match] to (false)
repeat(length of [possible_answers v])
change [i] by (1)
if<(item (i) of [possible_answers]) = (answer)>
set [match] to (true)
end
end
if<(match) = [true]>
they can say it
else
they can't say it
end

Last edited by MoreGamesNow (2012-03-07 21:47:56)


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2012-03-08 10:19:47

Bklecka
Scratcher
Registered: 2011-08-27
Posts: 1000+

Re: simple chat script

sorry that only works with one word i need to filter words out of a sentance


http://i48.tinypic.com/106ijc9.jpg

Offline

 

#4 2012-03-08 10:36:33

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: simple chat script

filter words out - hmm

i can make a script but
the  main problem is that it won't end looking for words


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#5 2012-03-08 12:31:33

Bklecka
Scratcher
Registered: 2011-08-27
Posts: 1000+

Re: simple chat script

nvm i found a way MODS CLOSE THIS I HAVE MY SCRIPT FOUND


http://i48.tinypic.com/106ijc9.jpg

Offline

 

#6 2012-03-08 12:38:39

P110
Scratcher
Registered: 2011-04-12
Posts: 500+

Re: simple chat script

muppetds wrote:

filter words out - hmm

i can make a script but
the  main problem is that it won't end looking for words

Show it here maybe we can but an end to it!  smile


Me live on 2.0 now  sad

Offline

 

#7 2012-03-08 14:00:44

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: simple chat script

Even though it may be immaterial now that it is solved:

I misinterpreted it your question, sorry.  Glad you found a solution  smile


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer