RESET(L)

NAME
	reset - called by driver when object is 'reset'

SYNOPSIS
	void reset(int arg);

LOCATION
	Called in every object.

DESCRIPTION
	The function reset() is called in every object, by the driver.
	There are two kinds of calls:

	  At creation time of the object, when it is loaded, reset with an
 	  argument of 0 is passed to the object. 

	  At periodic intervals after this, reset is called with an argument
  	  of 1 passed to it. 
	 
	At each reset time, a new integer with a value 
	'time() + random(X/2) + X/2' is bound to the object.  This is the
	time of the next reset.  Every 10 minutes the driver scans all 
	objects and resets those objects which are up for reset.

SEE ALSO
	_exit(L), clean_up(L)

Help topics available:
add_hook add_weight can_put_and_get clean_up drop
extra_look get heart_beat id init
init_arg is_armour is_money is_weapon long
query_auto_load query_hook query_long query_name query_prevent_move_from_statue
remove_hook reset set_long set_name set_short
short

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 78 since January 2020.
This file was last modified: June 2000.