Thanks Kaimetsu,
Quote:
|
index in save[] and have other NPCs look up the data from a central database or something to that effect.
|
...That sounds good, what do I start to learn about setting up a central database?
Quote:
|
Saved? They don't disappear at random times, but then they don't survive resetting either. You'd need to clarify what you mean by 'saved'.
|
ahhh, of course - a reset re-inits all the npcs and thus this.vars get build from stratch during the init events, now I get what that means. That makes sense - I need my inits to check for and load persistant data at init time. I'll worry more about that later.
Quote:
|
Hmm, maybe. You'd need to experiment with the variability of the index, I suppose. Perhaps even have the NPC monitor its own index and inform a central list of changes.
|
I wouldn't know how to do this without tight polling of the indexes at a short timeout, which would be CPU intesive.
Is it possible to trigger on a destroy call? That should be the only thing that triggers a change (well, a reshuffle) in the indexes, and would be less CPU intesive.
Thanks for the help