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