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:
You are guest number 123 since November 2019.
This file was last modified: June 2000.