New to this
A sprite asks would you like me to XXXXX
How do I use the answer.
If yes do one thing
If no do another
Offline
Here's an example:
When gf clicked ask [Do you like the color blue?] and wait if <(answer) = [yes] > say [I like blue, too!] for (2) secs end if <(answer) = [no] > say [well, that's too bad...] for (3) secs end if < not < <(answer) = [no] > or <(answer) = [yes] > > > broadcast [ask color question again v] //this is if they don't answer right end When I receive [ask color question again v] ask [Do you like the color blue?] and wait if <(answer) = [yes] > say [I like blue, too!] for (2) secs end if <(answer) = [no] > say [well, that's too bad...] for (3) secs end if < not < <(answer) = [no] > or <(answer) = [yes] > > > broadcast [ask color question again v] endYou can do this for any yes or no question.
Last edited by AgentRoop (2012-04-29 18:19:42)
Offline
AgentRoop wrote:
Here's an example:
When gf clicked ask [Do you like the color blue?] and wait if <(answer) = [yes] > say [I like blue, too!] for (2) secs end if <(answer) = [no] > say [well, that's too bad...] for (3) secs end if < not < <(answer) = [no] > or <(answer) = [yes] > > > broadcast [ask color question again v] //this is if they don't answer right end When I receive [ask color question again v] ask [Do you like the color blue?] and wait if <(answer) = [yes] > say [I like blue, too!] for (2) secs end if <(answer) = [no] > say [well, that's too bad...] for (3) secs end if < not < <(answer) = [no] > or <(answer) = [yes] > > > broadcast [ask color question again v] endYou can do this for any yes or no question.
Or you could do this:
when gf clicked broadcast [ask color question again v] When I receive [ask color question again v] ask [Do you like the color blue?] and wait if <(answer) = [yes] > say [I like blue, too!] for (2) secs end if <(answer) = [no] > say [well, that's too bad...] for (3) secs end if < not < <(answer) = [no] > or <(answer) = [yes] > > > broadcast [ask color question again v] end
Offline
Thanks guys. got me started
Offline
Here it is in a single script:
when gf clicked ask [Do you like blue?] and wait if <not <<(answer) = [yes]> or <(answer) = [no]>>> repeat until <<(answer) = [yes]> or <(answer) = [no]>> ask [Sorry, what did you say?] and wait end end if <(answer) = [yes]> say [Me too!] for (3) secs end if <(answer) = [no]> say [Well, I do.] for (3) secs end
Last edited by SciTecCf (2012-04-30 12:57:31)
Offline
SciTecCf wrote:
Here it is in a single script:
when gf clicked ask [Do you like blue?] and wait if <not <<(answer) = [yes]> or <(answer) = [no]>>> repeat until <<(answer) = [yes]> or <(answer) = [no]>> ask [Sorry, what did you say?] and wait end end if <(answer) = [yes]> say [Me too!] for (3) secs end if <(answer) = [no]> say [Well, I do.] for (3) secs end
That's good, too.
Offline