ID:1591229
 
(See the best response by Jittai.)
I've been reading up on Lists in the doc and some stuff people made here[http://www.byond.com/forum/?post=1498238#Lists] and I haven't come across a way to use lists to change variables in another list.

For example, if I have a list of materials and a list of names, is there a way to give the materials each a name from the list of names without repeating any names? Could I do the same for values? What if I had a list of 10 resources but wanted to make 2 of the resources worth 10 gold, 6 of them 20 and 2 30. Is there a way to do this all in one proc randomly? So if I use the proc again everything will be different?

I can do that stuff without using lists (although as a novice my method probably isn't very efficient) but is it possible to do with lists (i think that would be more efficient)? Is there a different, more efficient way to do this?
I'm not sure what you mean by materials and names/prices. But if you assign specific values like 10, 20, 30 with fixed numbers like that and the list is a fixed length then you would use pick() with a temporary list.

If you could further explain what you're trying to do others may see a totally different way to do it than solve your current issues.
Hmm.. not sure how to explain it well. I'll try though;

I have three lists;

1 list of 30 names
1 list of 30 values
1 list of 30 percentages

Is there a way to merge all three of these lists randomly? Not as in 1 list will merge randomly with another though. As in 27th name from the name list with 2nd value out of the value list and finally 14th percentage out of the percentage list. Each of the 30 items from each list are used once and filtered into a new list, except they've been combined randomly.

Another way to put it is there are three piles each with 30 things. I take one thing from each pile and put them together then put it in a new pile. Once I use something from a pile it can't be used again.

So if I have an object I can randomly get a name, value and percentage for it from three lists for it. Then that new object is put into a new list.
Like into one object each pairing of three? Like a random item generator?
Yep, pretty much. Though I want each thing to be used only once, to get 30 completely different items.
Best response
Make temporary lists, use pick(), and remove the selected thing from the list as you go.
Do I have to use pick three times for each individual item I want to make if I'm pulling from three lists(if I was only using 3 lists of 30)? I'd have to use pick 90 times, is there a shorter way to do this or am I thinking of doing this the wrong way? How would I remove things from the list after using it?
Don't worry about using pick 90 times.

just make a var in the process that equals to the default list - so the default list is safe for later use. Then as you pick things out of the temporary list subtract them.
Thanks for the help!! I've been trying to escape using procs multiple times since I started but eventually I'm going to have to do it lol.
As long as you're not doing it constantly you shouldn't have an issue.