Hey,

I keep running into this same problem and I'd like to know how this is best addressed:

Entities in GS come with skills and flags; flags are basically booleans and skills are var's. Those are the only options you have if you want to store information with an entity. What do you do when you want something a bit more complex, like an array or a list, that is a property of an entity?

For example, let's say I want to make an adventure game and I have NPC's that can give out quests. Each NPC has a different list of quests to give out, so this is not a universal list. In an object-oriented language I could create a public property for my NPC class that is a list of the quests each NPC has to give out (a list of quest ID's, for example). Then I could access that list with something like

currentQuest = NPC.questlist[i];

Lite-C isn't object oriented and so I can't do this. How do you work around this limitation? I seem to keep running into a situation where I create more and more global variables (and the associated ugly code to manage them), and the code becomes hard to deal with after a while.

I'm not looking for code examples, just general advice on how to structure things so this gets addressed more elegantly.