@attachallthisoverorreplace is a force command that makes the viewer wear the contents of a shared folder chosen by reference to something already worn: with no option, the folder that contains the inventory item of the object sending the command; with an option, the folder(s) containing whatever is worn on the given attachment point or clothing layer, or the attachment with the given UUID. It is a shortcut for @getpathnew followed by @attachalloverorreplace, without a listener or timeout.

This is the recursive variant: after the folder itself, every subfolder is processed in turn (depth first), except subfolders whose name begins with a dot.

Replace, unless the folder name says stack: objects whose name contains a target attachment point replace whatever is on that point, and clothing replaces the item on the same layer. If the name of the folder being attached begins with the string in the debug setting RestrainedLoveStackWhenFolderBeginsWith (default +), that folder is stacked instead, exactly as with the …over variant. The check is made per folder, so with recursive variants each subfolder decides for itself.

In both clients this command runs exactly the same code as @attachallthis: both use the “over or replace” mode. The spec describes it as the command to use when you want the folder name to decide; today @attachallthis does that too, but the spec warns that it may revert to unconditional replacing in the future.

Syntax

@attachallthisoverorreplace[:<attachpt>|<clothing_layer>|<uuid>]=force
@addoutfitallthisoverorreplace…=force   (undocumented alias, same code path)

Parameters

(no option)
Use the folder containing the inventory item of the issuing object. The object must be an attachment whose item lives under #RLV; otherwise nothing happens.
attachpt
An attachment point name, matched exactly (case-insensitive), e.g. spine, l forearm. Every object worn on that point that comes from #RLV contributes its folder.
clothing_layer
A layer name (shirt, pants, alpha…). Every worn item on that layer that comes from #RLV contributes its folder.
uuid
The key of a worn object; its folder is used. Accepted by the code although the spec only lists attachment points and layers for this command.

How folders and items are resolved

Caveats

Examples

// Wear everything in the folder this collar came from
llOwnerSay("@attachallthisoverorreplace=force");

// Wear the folder(s) of whatever is worn on the left forearm
llOwnerSay("@attachallthisoverorreplace:l forearm=force");

Notes

Spec discrepancies

See also

Implementation notes

Client differences

Comparison with RLVa

This command works differently from RLVa's @attachallthisoverorreplace; see the comparison.