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