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

#1 2011-08-29 10:56:07

Giddy215
Scratcher
Registered: 2011-08-03
Posts: 5

List "bridge" needed

In a project I'm making, I have two lists; one has numbers, and one has words. I need the number in a certain place in the list (say fifth) to trigger a word (the fifth word) on the word list, and than say " are you a  **that word**

Any suggestions on how to accomplish this?

Offline

 

#2 2011-08-29 11:49:50

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: List "bridge" needed

wait a bit, i'm making it and uploading  smile

Offline

 

#3 2011-08-29 13:14:59

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: List "bridge" needed

sorry it took me so long, my computer crashed  sad

so, here it is  smile

Offline

 

#4 2011-08-29 14:14:02

Giddy215
Scratcher
Registered: 2011-08-03
Posts: 5

Re: List "bridge" needed

I don't think you understand what I'm trying to convey here; it's probably just bad descriptive skills on my part though.

I have two lists. One is called 'string_index', one is called 'dictionary'.

throughout the game, (which is sorta' a takeoff of 20Q) the computer is recording the answers you give to a series of questions. At the end, it takes that string of numbers (which would look like this 112121222121121210) and checks to see if that "string" is in the String_Index. When the computer can't guess the word you chose, it asks you to type in your word, and than enters that word into the Dictionary. At the same time it adds the string of numbers into the String_Index. So the word and the number are in two different lists, but they have the same placement value. What I need is a way to say, "if this string is in the string_index, remember the placement, and say "are you a (word-number-(same as string placement number)-in-dictionary""  whew!

Hopefully this makes sense to someone.

Offline

 

#5 2011-08-29 14:29:34

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: List "bridge" needed

Is this what you're looking for? :S
http://weebly.com/uploads/8/1/3/6/8136364/13037.gif

Offline

 

#6 2011-08-29 14:46:07

Giddy215
Scratcher
Registered: 2011-08-03
Posts: 5

Re: List "bridge" needed

Yes!! That works perfectly! Thanks to all!

Offline

 

#7 2011-08-29 14:53:18

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: List "bridge" needed

Giddy215 wrote:

Yes!! That works perfectly! Thanks to all!

You're welcome!

Offline

 

#8 2011-08-30 19:00:29

Giddy215
Scratcher
Registered: 2011-08-03
Posts: 5

Re: List "bridge" needed

The finished  product is now online, just click on my username.

Offline

 

Board footer