blob: ca10beaea6ecddb631f23c336c0d80fdf18f3e92 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 object * all_environment()
Zesstra715ec202025-07-09 22:18:31 +02003 object * all_environment(object o)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstra715ec202025-07-09 22:18:31 +02005DESCRIPTION
6 Returns an array with all environments object <o> is in. If <o> is
7 omitted, the environments of the current object is returned.
MG Mud User88f12472016-06-24 23:31:02 +02008
Zesstra715ec202025-07-09 22:18:31 +02009 If <o> has no environment, or if <o> is destructed, 0 is returned.
MG Mud User88f12472016-06-24 23:31:02 +020010
Zesstra715ec202025-07-09 22:18:31 +020011EXAMPLES
12 If o is a match in a matchbox which is in a box in a chest,
13 in a room, all_environment(o) will return
14 ({ matchbox, box, chest, room }).
MG Mud User88f12472016-06-24 23:31:02 +020015
Zesstra715ec202025-07-09 22:18:31 +020016HISTORY
17 Introduced in LDMud 3.2.6, suggested by Tubmud.
MG Mud User88f12472016-06-24 23:31:02 +020018
Zesstra715ec202025-07-09 22:18:31 +020019SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020020 environment(E), all_inventory(E)