Discuss Scratch

spyrofan
Scratcher
74 posts

Lists

Okay im having trouble with lists can some one give me a small guide or tutorial on how to use them
scrooge200
Scratcher
1000+ posts

Lists

Lists are used like this.
say [I got some water!] for (2) secs
add [water] to [inventory v]

forever
if <[inventory v] contains [water]> then
ask [Would you like to drink the water?] and wait

else
say [You do not have any water right now.] for (4) secs
end


end
That's just a basic way to use lists. Try experimenting with lists! Although, if you need a specific script, just ask here!
deck26
Scratcher
1000+ posts

Lists

Have you seen this page http://wiki.scratch.mit.edu/wiki/List

Powered by DjangoBB