ADD_SKY_EVENT(1) ADD_SKY_EVENT(1) NAME add_sky_event() - sets a function to be called every change of time of day SYNOPSIS void add_sky_event(function f) DESCRIPTION This functions sets the mudlib to call the function you specify every time the time of day changes. With the Nightmare Mudlib time system, there are four changes in time of day: dawn, morning, twilight, night. If you call add_sky_event(), then any time the time of day changes, the function you specified will be called with the time of day as an argument. EXAMPLES add_sky_event((: howl :)) will have the function: void howl(string str); get called in your object every change in the time of day. The string argument is the time of day, which will be one of dawn, morning, twilight, night. NOTES In general, this should be called only from create() in an object. It definitely should only be called once for each function to be called in an object. Also, it is recommended that you set_no_clean(1) in any object which does have functions set by this function to be called. LOCATION /secure/sefun/time.c SEE ALSO remove_sky_event() Author Descartes of Borg 1