NAME
	add_action - add an action to an object	
SYNOPSIS
	void add_action(string function, string verb, void|int part)

DESCRIPTION
	This function adds an action to the `living' object that
	the command is run by. `function' is the function name that
	is to be run when the command verb `verb' is given.

	If `part' is defined (not 0) only a part of the given verb
	need to be given for the command to work

	For example:

	add_action("my_command", "com", 1);
	
	will match on "com" or "command" while the whole verb
	"command" will have to be given for this expression:

	add_action("my_command", "command", 0); or
	add_action("my_command", "command");

NOTA BENE
	For this action to be added to an object, the object must be
	`living', i.e. the function "enable_commands()" must have been
	performed in the object prior to the "add_action()".
	
SEE ALSO
        disable_commands, enable_commands, living, _query_action, query_verb

Help topics available:
_destruct _isclone _lock _next_clone _query_action
add_action all_inventory call_other call_out call_out_info
clone_object command creator deep_inventory destruct
disable_commands enable_commands environment exec file_name
find_call_out find_living find_object first_inventory function_exists
inherit inherit_list input_to interactive living
move_object next_inventory present previous_object query_verb
remove_call_out restore_object save_object set_heart_beat set_light
set_living_name shadow tell_object tell_room this_object
this_player transfer

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 123 since November 2019.
This file was last modified: June 2000.