@cpattr

From TinyMUX
Jump to navigation Jump to search


@cpattr copies an attribute from one object to another, or several others.

Description

 Command: @cpattr[/noflagcopy] <obj>/<attr> = <obj1>[/<attr1>] [,<obj2>/<attr2>,...]

@cpattr copies an attribute from one object to another, or several others. If you want to do the same thing while removing the original attribute from the original object, see @mvattr. Attribute flags ARE copied as well, unless you use the /noflagcopy switch, which you probably want if you're copying from a non-standard attribute to a standard one.

Example

 @cpattr box/test = box/test1, cube/random, tribble/describe

The above example would check the object "box" for an attribute named TEST and then copy it to the attributes TEST1 on "box", RANDOM on the object named "cube", and DESCRIBE on the object named "tribble".

If you leave out the destination attribute, the attribute is copied to one of the same name on the new object.

Example

 @cpattr box/test=cube

The above example would copy the TEST attribute from "box" to TEST on "cube".

Relevant help files: @cpattr

See also: Attribute, non-standard attributes