Thanks for the reply Justifun.
I got quite far since posting my original question and I have the names of my objects stored in an array quite nicely.
So, I have something like this:
0,red,yellow,blue
red,0,0,0
yellow,0,0,0
blue,0,0,0
As you can see, it's basically a grid with names across the top and down the side.
What I wanted to do next.... which I can't figure out, is cross reference the grid.
I wanna be able to look along the X axis (Red) then down the Y axis (Yellow) and were the two meet up, set to orange! Then the same with X=Yellow, Y=Red....
Then, later on, I want to be able to do the same thing with looking up where the X and Y meet and have it result in 'orange'. You get what I mean, I'm sure.
Where the X=red and the Y=blue, that would be purple and so forth.
I hope you can help as I'm quite stuck on this part.
Cheers.