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:
- I need to have a load of characters, which can be displayed on the screen individually (very technical description there!).
- To do this, each of the characters needs to have an x and y variable, as well as a couple of other things, like colour, and also perhaps it's position in a string (but don't worry about that last one).
- I need to then be able to access these characteristics relatively easily once assigned, so that I can use them to actually display the characters.
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.
ToME Wiki