From the NannyMUD documentation

LAST CHANGE

2000-12-14

FUNCTION


NAME

        add_action - Add an action to an object.

SYNTAX

	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

EXAMPLE

	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");

NOTE

	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 in efun/object_related/disable_commands

SEE ALSO

        enable_commands in efun/object_related/enable_commands

SEE ALSO

        living in efun/object_related/living

SEE ALSO

        _query_action in efun/object_related/_query_action

SEE ALSO

        query_verb in efun/object_related/query_verb