MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS: |
| 2 | string object_name() |
| 3 | string object_name(object ob) |
| 4 | |
| 5 | DESCRIPTION: |
| 6 | Get the file name of an object or if no argument is given of the current |
| 7 | object. If the object is a cloned object, then it will not have a |
| 8 | corresponding file name, but rather a new name based on the original |
| 9 | file name. |
| 10 | |
| 11 | The returned name always begins with '/' (absolute path), |
| 12 | except when the parser runs in COMPAT (-o) mode. |
| 13 | |
| 14 | EXAMPLES: |
| 15 | find_object(object_name(ob)) == ob |
| 16 | This is guaranteed to be true for all objects ob that are not |
| 17 | destructed. |
| 18 | |
| 19 | sizeof(explode(object_name(ob), "#")) == 1 |
| 20 | This is always true if ob is a blue print. |
| 21 | |
| 22 | SEE ALSO: |
| 23 | find_object(E) |
| 24 | |
| 25 | 29.10.2006 Zesstra |
| 26 | |