Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Anwser not working
- MikeHunt697
-
New Scratcher
2 posts
Anwser not working
I am making a choice based game. i have made the first 3 anwsers and they work fine. but when i tried to make another question in the anwser box it didnt do the commands i set it to do. PLS HELP
- asivi
-
Scratcher
1000+ posts
Anwser not working
Be sure that you are comparing the answer with the exact string you want, for example having some extra char$ like an “space”.
<(answer) = [hello ]>//here "hello" is actually typed "hello "
- nmalekpour
-
Scratcher
20 posts
Anwser not working
Yes, what @asivi said, but if you want to make it a little easier to type in (such as recognizing Hello and hello), use this script.
when green flag clickedThis way, it will respond to both versions of ‘hello’.
forever
if <<(foo) = [hello]> or <(foo) = [Hello]>> then
say [Hey!] for (2) secs
end
- drmcw
-
Scratcher
1000+ posts
Anwser not working
Yes, what @asivi said, but if you want to make it a little easier to type in (such as recognizing Hello and hello), use this script.Scratch is not case sensitive and so that comparison is unnecessary.when green flag clickedThis way, it will respond to both versions of ‘hello’.
forever
if <<(foo) = [hello]> or <(foo) = [Hello]>> then
say [Hey!] for (2) secs
end
- Discussion Forums
- » Help with Scripts
-
» Anwser not working