I'm wondering how to make those variable lists.. I pretty sure that's what they're called. In case their not called variable lists, what I am thinking of is when there are those red ones (not orange). The ones that say things like (add __ to [ ]) and (replace item { } of [ ] With __). I have seen them in projects, and I'm curious on how to make them, what they do, and everything. Thanks!
Offline
They are called Lists...and they are very useful! Here's a tutorial I made a while back that might be helpful.
http://scratch.mit.edu/projects/Paddle2See/260208
Use the Java viewer or download. The Flash viewer has some problems I need to look at.
Offline
People just refer to them as lists.
Go to the variables section and select "Make a List". Name it, then you have a blank one.
What it does is basically it works as a multi-data variable (a variable that can store more than one value).
A use for it could be having a list called Items, and say when the character is touching a piece of gold you can say "Add "Gold" to Items". When you find a piece of silver you can add Silver to Items. You now have two items in one list, which you can't do with a normal variable.
Now you can say "If list Items contains "Gold," then run a certain script. See this script will only run if you've found gold, maybe it can be used as currency.
Obviously the above example is by no means NOT the only use for lists. There are very, very many methods of use for them for many, many different purposes.
Last edited by Kileymeister (2011-03-28 21:03:34)
Offline
Here's a good example of a use of lists: http://scratch.mit.edu/projects/kayybee/1646610
Offline
I think lists can be really good for projects that use a lot of text, like my AI. (see link in sig)
Offline
You can also read more about lists here.
Offline