PDA

View Full Version : getting a mod to perform daily tasks - how to check current day?


Kokolums
05-12-2006, 01:00 AM
Simple question - I want my mod to perform a task once a day (cleanup some variables) - What command can I use to get what day it is so I can compare it to the last time the user logged?

pericles
05-12-2006, 04:09 PM
Very simple, create a saved variable to store the time you last did something, then check your variable on an event eg: PLAYER_ENTERED_WORLD or on exit or something.

You just want to balance how frequently you do the check. Against how likely it is you miss the window.