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

#1 2012-03-10 18:31:34

wjack2010
Scratcher
Registered: 2010-06-28
Posts: 100+

When nothing entered

When the sprite asks a question, if nothing is entered or it doesn't know what the answer is, it says something, how can I do this?

Offline

 

#2 2012-03-10 18:56:35

MrMonk999
Scratcher
Registered: 2011-12-17
Posts: 500+

Re: When nothing entered

When I receive [ask question v]
ask [question] and wait
if <not<[list v]contains (answer)>>//fill this list with acceptable answers
say[i'm sorry, that's not a valid answer]
broadcast [ask question v] and wait
end


http://i.imgur.com/CAMJe.png

Offline

 

#3 2012-03-11 07:13:35

wjack2010
Scratcher
Registered: 2010-06-28
Posts: 100+

Re: When nothing entered

Doesn't matter, I worked it out. When saying "ask" if they give the correct answer, it returns a response, else invalid answer. No need for lists.

Offline

 

Board footer