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

#1 2012-04-27 12:26:20

NLMorris
Scratcher
Registered: 2011-04-13
Posts: 3

im having trouble w/my ai project

my project, NEURO, needs to be able to say slightly different responcse to a queston.
like if i type my name in it would say hello, hi, or something else. basicly a "random respounse core" or something. when this settled, i might ask about help elsewhere.

please help if you can


Im a random person, be warned...

Offline

 

#2 2012-04-27 12:53:14

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: im having trouble w/my ai project

Create a list called "Responses". Add hello, hi and everything you want to "Responses" (you can call it whatever you want but I'll call it that here)

when gf clicked
ask [What's your name?] and wait
say (item [any v] of [responses v]) for [5] secs


http://i46.tinypic.com/ao03lk.png

Offline

 

#3 2012-04-28 04:18:53

NLMorris
Scratcher
Registered: 2011-04-13
Posts: 3

Re: im having trouble w/my ai project

thx mate, i'll wait and see what others say before i start workin'


Im a random person, be warned...

Offline

 

#4 2012-05-17 18:23:46

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: im having trouble w/my ai project

This would work

[scratchblocks]
when gf clicked
ask [What is your name?]
send [pick random [1] through [3]]

[scratchblocks]
when I receive [1]
say [Hello!]

Offline

 

#5 2012-05-18 10:47:44

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: im having trouble w/my ai project

RoboNeo9 wrote:

This would work

when gf clicked
ask [What is your name]?
broadcast (pick random (1) to (3))

when I receive [1]
say [Hello!]

fixed scratchblocks, but that would be far less effective than phirrups way


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#6 2012-05-24 16:56:02

moretzprogramming
Scratcher
Registered: 2012-04-25
Posts: 61

Re: im having trouble w/my ai project

PhirripSyrrip wrote:

Create a list called "Responses". Add hello, hi and everything you want to "Responses" (you can call it whatever you want but I'll call it that here)

when gf clicked
ask [What's your name?] and wait
say (item [any v] of [responses v]) for [5] secs

This would work very well.


Check out my music, Noise Dots (in flash), and my Upside-Down Cat!

Offline

 

#7 2012-05-24 22:34:40

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: im having trouble w/my ai project

PhirripSyrrip wrote:

Create a list called "Responses". Add hello, hi and everything you want to "Responses" (you can call it whatever you want but I'll call it that here)

when gf clicked
ask [What's your name?] and wait
say (item (pick random 1 to 10) of [responses v]) for [5] secs//the random block is green in reality

This would work for ten responses, and be completely random.


Why are the secret organizations getting all the attention?  mad

Offline

 

#8 2012-05-24 23:12:44

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: im having trouble w/my ai project

sonicfan12p wrote:

PhirripSyrrip wrote:

Create a list called "Responses". Add hello, hi and everything you want to "Responses" (you can call it whatever you want but I'll call it that here)

when gf clicked
ask [What's your name?] and wait
say (item (pick random (1) to (10)) of [responses v]) for (5) secs

This would work for ten responses, and be completely random.

Blocks fixed.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

Board footer