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

#1 2011-11-26 12:45:29

Chocolatefate
New Scratcher
Registered: 2011-11-26
Posts: 1

Question/Ask Wrong Response Dillema

Hi, I have been having some trouble.
So when a sprite asks a question, if the answer isn't listed in the
possible answers like:

<if><(  <=>  )>
<say[

But if the answer typed is not one specified by an

"if answer = whatever they reply/type"
"do this"

What is the whatever they reply/type part is not listed?

Then the sprite doesn't know what to do...
Then the sprite stops talking...

How do I fix this?

Offline

 

#2 2011-11-26 13:19:38

Lar-Rew
Scratcher
Registered: 2010-02-19
Posts: 100+

Re: Question/Ask Wrong Response Dillema

Chocolatefate wrote:

Hi, I have been having some trouble.
So when a sprite asks a question, if the answer isn't listed in the
possible answers like:

<if><(  <=>  )>
<say[

But if the answer typed is not one specified by an

"if answer = whatever they reply/type"
"do this"

What is the whatever they reply/type part is not listed?

Then the sprite doesn't know what to do...
Then the sprite stops talking...

How do I fix this?

Make a list with all your answers, and then do this:

if list contains answer
  Then your code
else
  say "what?"

Offline

 

Board footer