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

#1 2010-11-06 11:30:26

ironclay3000
Scratcher
Registered: 2008-02-09
Posts: 27

Script problem

H i  g u y s  i  k n o w  i  h a v e n t  b e e n  o n l i n e  i n  a  w h i l e  i  h a v e  b e e n  c r e a t i n g  a  m a s s i v e  g a m e .  I  n e e d  h e l p.  S c r i p t :
<when green flag clicked>
ASK: What do you need help with? AND WAIT
<if> ANSWER=evos
<play sound[ ComputerBeeps1
<switch to costume[ evos
<end>
<else>
<play sound[ DirtyWhir
<switch to costume[ doesnotcompute
<end>

It is a help bot script. It goes on like this for all answers (3 currently) and only 1 works. The rest go to "does not compute"
HELP!


smile   neutral    sad    big_smile      yikes   wink     hmm      tongue     lol    mad    roll      cool
I Like Smileys

Offline

 

#2 2010-11-06 13:24:28

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Script problem

I'm not sure what script you're using currently, but the best way is to use something like this:
http://www.freeimagehosting.net/uploads/0fd832a534.gif
(click for full size)

Alternatively, you can make a list containing each possible answer, and replace the <> or <> blocks with just one <list contains [(answer)]> block.

Does that make sense?

Last edited by hmnwilson (2010-11-06 13:25:35)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2010-11-07 00:42:34

ironclay3000
Scratcher
Registered: 2008-02-09
Posts: 27

Re: Script problem

Thanks! I do believe this will work, have to try in the morning:)
You guys are gonna love this game...


smile   neutral    sad    big_smile      yikes   wink     hmm      tongue     lol    mad    roll      cool
I Like Smileys

Offline

 

Board footer