MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS: |
| 2 | object clone_object(string name) |
| 3 | |
| 4 | DESCRIPTION: |
| 5 | Clone a new object from definition name, and give it a new unique |
| 6 | name. Return the new object. |
| 7 | |
| 8 | The original, called blue print, used for cloning, should not be |
| 9 | used in the game, only be used for cloning. The cloned objects |
| 10 | contain only the data but the blue print also the function code. |
| 11 | The blue print is the one without a unique number at the end of |
| 12 | the object's object_name(). The clone_object() function never |
| 13 | returns a blue print. |
| 14 | |
| 15 | Note that the pathname must be complete, which means there are no |
| 16 | relative paths allowed. |
| 17 | |
| 18 | EXAMPLE: |
| 19 | object torch; |
| 20 | torch = clone_object("/obj/torch"); |
| 21 | |
| 22 | SEE ALSO: |
| 23 | destruct(E), move_object(E), uids(C) |