Murrawhip wrote:
How do you get the time stamp of when it will occur?
(preferably GUI) input from the user, convert it yourself to a time-stamp? "Feb 11, 2011 @ 12:00" could easily be put together from a few simple clicks by a user. Then just wait for time2text(world.timeofday,"MMM DD, YYYY @ hh:mm") to match it and trigger the event.
That's the best solution I've heard so far, but still not so ideal.
I use an eventhandler that orders things in the order that they need to be done, so that there is only one sleep() ever happening at once.
With your solution, I would need to check potentially hundreds of different timestamps each minute for events that could be occurring weeks/months from now, instead of just adding it to the eventhandler.
I cannot remember a number, as I never have the number in the first place.
I want GMs to be able to specify a date and time for an in-game event to happen, and I honestly don't believe that is such a rare thing for game creators to do.