Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame^] | 1 | catch_tell() |
| 2 | ============ |
| 3 | |
| 4 | SYNOPSIS |
| 5 | -------- |
| 6 | :: |
| 7 | |
| 8 | void catch_tell(string) |
| 9 | |
| 10 | DESCRIPTION |
| 11 | ----------- |
| 12 | :: |
| 13 | |
| 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 | SEE ALSO |
| 31 | -------- |
| 32 | :: |
| 33 | |
| 34 | enable_commands(E), say(E), tell_object(E), tell_room(E), |
| 35 | write(E), catch_msg(L) |
| 36 | |