Suggestions on how to deal with date

For builders to discuss and ask building questions.
Post Reply
Vibius
Sword Grand Master
Sword Grand Master
Posts: 433
Joined: Mon Nov 12, 2007 12:35 pm
Location: Waterdeep

Suggestions on how to deal with date

Post by Vibius » Fri Nov 14, 2008 12:25 pm

I'm sure that there must be something easier that what I thought, does anyone knows how could be dealt with the scenario in which a mob asks a pc returning after X months? And after X years? (RL months)

I have thought about storing in questbits the month (A value from 1 to 12) that the character visits the mob for the first, and when the PC visits the mob it is checked the questbit related to the month in which he was visited for first time, and then it is checked if the current month is after X months from the time that visited it (taking care when the month was which is visited the mob is in the last months of the year), but this system would have the problem in which if waited long enough the character will be within the range in which he was asked to await thus not being able to proceed with the flow of the program.

Although it might seem a bit extreme I would like also to know if it would be possible take note of the years that did pass since a character did something as well.

Any suggestions?
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Re: Suggestions on how to deal with date

Post by Dalvyn » Fri Nov 14, 2008 5:19 pm

The system you present is the best I came up with when thinking about this problem, so I have no other solution to offer. :) And yes, it has the problem you outline.
Image
Post Reply