ADD_SKY_EVENT(1) ADD_SKY_EVENT(1) NNAAMMEE _a_d_d___s_k_y___e_v_e_n_t_(_) - sets a function to be called every change of time of day SSYYNNOOPPSSIISS void add_sky_event(function f) DDEESSCCRRIIPPTTIIOONN 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 _a_d_d___s_k_y___e_v_e_n_t_(_), then any time the time of day changes, the function you specified will be called with the time of day as an argument. EEXXAAMMPPLLEESS 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. NNOOTTEESS In general, this should be called only from _c_r_e_a_t_e_(_) 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 _s_e_t___n_o___c_l_e_a_n(1) in any object which does have functions set by this function to be called. LLOOCCAATTIIOONN /secure/SimulEfun/time.c SSEEEE AALLSSOO _r_e_m_o_v_e___s_k_y___e_v_e_n_t_(_) AAuutthhoorr Descartes of Borg 1