I'm trying to add 1 to a players age every 6 hours. I'd like to also have players that are offline to age as well. The only way I can think of is to edit all of the savefiles ages. Am I thinking about this the wrong way, or is this how I should do it?
This is actually pretty confusing to me since I've never done anything time-related in BYOND, but I started using this and I'm gaining 12 'age' a second.
|
Using time deltas is a way to acheive very efficient, very flexible programs. If you ever encounter a solution to a problem where you need to keep track of data for offline players, chances are that you are chasing down a bad solution. Generally, it's best to store the information in a form that can be recalculated on load, or to simply deal with that information at a later time through a third-party object/savefile.