View Single Post
  #2  
Old 01-31-2003, 06:37 AM
busyrobot busyrobot is offline
Registered User
busyrobot's Avatar
Join Date: Dec 2002
Posts: 978
busyrobot is on a distinguished road
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
__________________
Woodsman Padren Talisan Sagesun (Dustari)
Graal Kingdoms

"Uh, Professor, are we even allowed in the Forbidden Zone?"
"Why, of course! It's just a name, like the Death Zone or the Zone of No Return. All the zones have names like that in the Galaxy of Terror."
Reply With Quote