Discuss Scratch

lolfish47
New Scratcher
1 post

How to make a sprite ask a question related to the answer??

im trying to make a project and what happens is that a sprite asks you what your name is and where your from, its just how do i make the next answer related?

if u can help then HELP MEEEE!!!
(p.s. its an assessment!!! D
Scratch12300
Scratcher
500+ posts

How to make a sprite ask a question related to the answer??

Maybe
ask [What's your name?] and wait
set [your name v] to (answer)
ask [Where are you from?] and wait
set [where U live v] to (answer)
ask (join (join (join (join [Your from ] (where U live in) [, ] (your name) [?]) and wait
? Then if he answers that his name is “Ted”, and he comes from Italy, then it would ask him this: Your from Italy, Ted?


That's a complex example, so here's a simpler one:
ask [What's your name?]
ask (answer) and wait
That mean that If you answer “Ted” when it asks what your name is, then it would ask “Ted”, and you could give an answer to that. Does this help? Because if it does, then…

Last edited by Scratch12300 (March 10, 2014 17:58:44)

Scratch12300
Scratcher
500+ posts

How to make a sprite ask a question related to the answer??

Bump. You'll get help.
drmcw
Scratcher
1000+ posts

How to make a sprite ask a question related to the answer??

Take a look at the Eliza project in my signature. It's a Scratch version of one of the first chatbots. It may give you some ideas.
tazvik007
New Scratcher
1 post

How to make a sprite ask a question related to the answer??

how to make sprite answer in scratch
Buddy7184
Scratcher
16 posts

How to make a sprite ask a question related to the answer??

Here is what I have for you!
whenclickedaskWhere are you from?andwaitsayanswersayI like that place!askWhat is your name?andwaitsayanswersayGreat name!

Last edited by Buddy7184 (Feb. 9, 2014 23:13:52)

Moo_Spud
New Scratcher
2 posts

How to make a sprite ask a question related to the answer??

I am trying to get the sprite to say ‘ok’ if the answer is right and ‘try again’ if it is wrong but I don't know how…

sayOk
or
sayTry again
1234abcdcba4321
Scratcher
1000+ posts

How to make a sprite ask a question related to the answer??

askyour questionandwaitifanswer=correct answerthensayOkelsesayTry again

Last edited by 1234abcdcba4321 (Feb. 13, 2014 02:57:52)

MasterCard786
Scratcher
100+ posts

How to make a sprite ask a question related to the answer??

askandwaitifanswer=yesthenaskandwaitelsebrodcasthello
Moo_Spud
New Scratcher
2 posts

How to make a sprite ask a question related to the answer??

thank you 1234abcdcba4321 for the tip!!!
Sammietje
Scratcher
7 posts

How to make a sprite ask a question related to the answer??

askwhere did you come from?andwaitifthen
Explore403
Scratcher
100+ posts

How to make a sprite ask a question related to the answer??

whenclickedaskWhat is your favorite color?andwaitifanswer=greenthenaskWhy is green your favorite color?andwait
Well, it should be something like this.
dogzter
Scratcher
14 posts

How to make a sprite ask a question related to the answer??

Explore403 wrote:

whenclickedaskWhat is your favorite color?andwaitifanswer=greenthenaskWhy is green your favorite color?andwait
Well, it should be something like this.
thx a lot
dogzter
Scratcher
14 posts

How to make a sprite ask a question related to the answer??

dogzter wrote:

Explore403 wrote:

whenclickedaskWhat is your favorite color?andwaitifanswer=greenthenaskWhy is green your favorite color?andwait
Well, it should be something like this.
thx a lot
but i still cant find that round green block
elcidero
Scratcher
39 posts

How to make a sprite ask a question related to the answer??

The round green block in question is located under operators. Hope that helps
dogzter
Scratcher
14 posts

How to make a sprite ask a question related to the answer??

i dont know how to get the green block i can only do…. the diamond one not the circle
dogzter
Scratcher
14 posts

How to make a sprite ask a question related to the answer??

elcidero wrote:

The round green block in question is located under operators. Hope that helps
still cant find it…..
Scratch12300
Scratcher
500+ posts

How to make a sprite ask a question related to the answer??

dogzter wrote:

i dont know how to get the green block i can only do…. the diamond one not the circle
If you see a circle shaped block on the forums but in the actual thing you find it as a diamond shape then you can use the diamond one; because it's just a texture bug on the forums. So, you can make it with the diamond one.
liam5426
New Scratcher
2 posts

How to make a sprite ask a question related to the answer??

same here
emilymorris9
Scratcher
24 posts

How to make a sprite ask a question related to the answer??

Mabye

whenclickedaskwhats your name?andwaitcurrentnameaskcurrent name v where do you live?andwaitIfitworksthanwowthatssocool:):D:):D:):D:):D:):D:):D:)

Powered by DjangoBB