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

#1 2011-06-14 15:47:55

yakyak
New Scratcher
Registered: 2011-06-14
Posts: 2

How to Make a conversation

Hey, I know that this is a big tackle for a new scratcher but I want to see If I can have a interactive sprite that can talk, play simple games (hide and seek) and keep a yes/no conversation going. I would appreciate any help even the smallest.

Offline

 

#2 2011-06-14 19:35:03

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: How to Make a conversation

Most of what you would use would probably be sensing,  particularily the ask and answer blocks, and the variables and lists section.  You won't have to use lists most likely if the bot is the one asking the questions, but if the scratcher is asking, then you might need a few lists and an complex system of analysis.

If the bot is asking the questions:
when flag clicked
set (question #) to (0)
repeat (length of (questions) )
  change (question #) by 1
  ask item (question #) of (questions)
  if (answer)=(yes)
     add your script here
  else
     add your script here
end

This script is easily changed up and it's only the basics.  If you want more specific help, just comment back.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2011-06-14 19:40:43

yakyak
New Scratcher
Registered: 2011-06-14
Posts: 2

Re: How to Make a conversation

Thank you. I'll see if it works.

Offline

 

#4 2011-06-15 02:04:24

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: How to Make a conversation

It's practically impossible to create a good chatbot, but you can try mine here  tongue


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

Board footer