Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » please help me again
- amarde01
-
Scratcher
18 posts
please help me again
how do I make it so that when a person types in
as
it says whatever the person said in a random order
like if the person said hello it would show like elolh or something
as
ask [] and wait
it says whatever the person said in a random order
like if the person said hello it would show like elolh or something
- drmcw
-
Scratcher
1000+ posts
please help me again
Add each letter of answer to a list and then pull out a random letter from the list deleting as you go and joining each letter to the output.
set [output v] to []
repeat until <(length of [letter list v]) = [0]>
set [index v] to (pick random (1) to (length of [letter list v]))
set [output v] to (join (output) (item (index) of [letter list v]))
delete (index) of [letter list v]
end
- Discussion Forums
- » Help with Scripts
-
» please help me again