If I have a list like so:
L[2][2]
It will be like this won't it?
L[1] = L[1][1] L[1][2]
L[2] = L[2][1] L[2][2]
My question is, does that mean there are 6 things in my list or just 4?
Also, how do you write to an association?
I couldn't do this:
L[1][2] = src.icon
It would add a list into L[1][2] rather than an icon. The list inside L[1][2] will have an icon though.
ID:168439
![]() Oct 17 2005, 9:06 am
|
|
![]() Oct 17 2005, 9:26 am
|
|
I don't think it works that way in BYOND. What you want is a hashtable, and I don't know whether anybody has written a hashtable system for BYOND.
|
DeathAwaitsU wrote:
If I have a list like so: Astute observation. Technically, there are two things in the list L, which are other lists. Each of those has 2 values. Also, how do you write to an association? L[1][2]=icon will definitely put an icon in that spot, but if you wanted to write to an association, you'd need an value to associate it with, not the position in the list. I.e., L[1]["red"]=icon will do. Lummox JR |