More Annals of Ea intro queries I'm afraid, but I thought they deserved a new topic to themselves. :p

This is perhaps a rather simple question to answer, or perhaps not, depending on how well I explain it, or whether I'm asking the impossible!

Anywho...

It's probably easiest for me to describe what I want to end up with:

In the end I guess what I want is to be able to do something like:

for j = foo do
 for i = foo do
  Term_putch( i, j, character(i,j).colour, character(i,j).char)
 end
end

So that it is similar (I suppose) to using cave(y,x).feat.

However, I don't really know how to go about setting something like that up.

I can (hopefully) use:

character = {}
character.colour = {}
etc...

to enable me to create arrays for each of the variables, but how do I end up with the character(y,x) bit working?

My lua skills are not really up to scratch here, but I thought it would be a good way to learn... O_o

Am I doing this completely wrong? Any help or criticism warmly welcomed -- TheFalcon


NeilStevens: My only advice is: Look at how ToME displays its title screen.

Oh, and please do keep putting each separate programming issue on its own page. Try to make the titles more descriptive though, please, heh.

Module Developers Discussion/lua arrays etc... (last edited 2005-10-09 22:12:58 by NeilStevens)