MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | catch_tell() |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 2 | ************ |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 4 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 5 | SYNOPSIS |
| 6 | ======== |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 7 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 8 | void catch_tell(string) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 9 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 10 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 11 | DESCRIPTION |
| 12 | =========== |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 13 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 14 | When a message is sent to a noninteractive player, via say(), |
| 15 | tell_object, tell_room(), printf() or write(), it will get to the |
| 16 | function catch_tell(string). This will enable communications between |
| 17 | NPCs and from a player to an NPC. |
| 18 | |
| 19 | Also, if an interactive object is being shadowed and the |
| 20 | shadow has catch_tell() defined, it will receive all output |
| 21 | that would otherwise be written to the user. |
| 22 | |
| 23 | If a message is sent by an interactive object, catch_tell() is |
| 24 | not called in that object, to prevent recursive calls. Thus |
| 25 | catch_tell() in interactive objects can be used to filter the |
| 26 | output that goes to the users. |
| 27 | |
| 28 | The efun shout() sends to interactive objects only. |
| 29 | |
| 30 | |
| 31 | SEE ALSO |
| 32 | ======== |
| 33 | |
| 34 | enable_commands(E), say(E), tell_object(E), tell_room(E), |
| 35 | write(E), catch_msg(L) |