MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | int|string modify_command(string cmd) |
| 3 | |
| 4 | DESCRIPTION |
| 5 | After set_modify_command(mob) was called for an interactive |
| 6 | object iob, all commands for that user will be passed to |
| 7 | mob->modify_command(), and the return will then be checked for |
| 8 | actions. |
| 9 | |
| 10 | If the result is a string, it is the new command to execute |
| 11 | instead of the given one. Note that it is not possible to |
| 12 | make several commands from one this way! |
| 13 | If the result is a non-zero number, the given command is to |
| 14 | be ignored. In case of the closure/lfun setting this may |
| 15 | mean that the closure/lfun already executed it. |
| 16 | If the result is 0, the originally given command is to be |
| 17 | used. |
| 18 | |
| 19 | |
| 20 | SEE ALSO |
| 21 | set_modify_command(E), hooks(C) |