NAME
	_signal_dropped - tell an object it was dropped

SYNOPSIS
	void _signal_dropped();

LOCATION
	Any object that might be dropped.

DESCRIPTION
	When a player has dropped something this function is called in
	the dropped object _after_ the item is moved to the environment
	of the player.

NOTES
	Is only called for the drop command, not when given, put in
	bags, sold etc. Use _signal_given in those cases.

EXAMPLE
	A delicate vase that breaks if dropped.

	inherit "/std/basic_thing";
	 
	void _signal_dropped()
	{
	  tell_room(environment(this_object()),
		    "The vase breaks as it hits the groud.\n");
	  set_short("a broken vase");
	  set_long("The vase is cracked and large pieces are missing.\n");
	  set_value(20);
	}
	 
	void reset()
	{
	  set_name("vase");
	  set_short("a delicate vase");
	  set_long("A most delicate vase of the finest china, you had\n"+
		   "better not drop it!\n");
	  set_value(400);
	}

SEE ALSO
	_signal_given

Help topics available:
_signal _signal_dropped _signal_given _signal_take_from_inv _signal_gotten
_signal_environment_died _signal_lost_connection _signal_please_take_this

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

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