blob: eea607046caa5a374c207f36301151a146ff6155 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
2 int|string modify_command(string cmd)
3
4DESCRIPTION
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
20SEE ALSO
21 set_modify_command(E), hooks(C)