MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | void catch_msg(mixed *|struct|mapping|object msg, object obj) |
| 3 | |
| 4 | DESCRIPTION |
| 5 | When say(), tell_room() or tell_object() are used with an |
| 6 | non-string as message, the value will be passed to catch_msg() |
| 7 | in all living objects that can hear it, instead of writing to |
| 8 | the user resp. sending to catch_tell(). This can be used to |
| 9 | implement communication protocols between livings. The second |
| 10 | argument denotes the object that has sent the message. |
| 11 | |
| 12 | HISTORY |
| 13 | LDMud 3.2.11 added tell_object() to the efuns calling this |
| 14 | lfun for symmetry reasons. |
| 15 | LDMud 3.3.686 added the use of a mapping/struct/object as message |
| 16 | value. |
| 17 | |
| 18 | SEE ALSO |
| 19 | say(E), tell_room(E), catch_tell(A) |