@attachalloverorreplace is a force command that makes the viewer wear the contents of the folder at the given path under #RLV.

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 @attachall: 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 @attachall does that too, but the spec warns that it may revert to unconditional replacing in the future.

Syntax

@attachalloverorreplace:<folder1/.../folderN>=force
@addoutfitalloverorreplace…=force   (undocumented alias, same code path)

Parameters

folder1/.../folderN
Path below #RLV, case-insensitive. A leading #RLV/ is tolerated in Marine's viewer (stripped for RLVa compatibility). Anything after a | in a path element is ignored, so output from @getinvworn can be fed back directly. An empty option does nothing.

How folders and items are resolved

Caveats

Examples

// #RLV/Restraints/Leather cuffs
llOwnerSay("@attachalloverorreplace:Restraints/Leather cuffs=force");

// A folder named "+Bells" always stacks, whatever the command
llOwnerSay("@attachalloverorreplace:Restraints/+Bells=force");

Notes

Spec discrepancies

See also

Implementation notes

Client differences

Comparison with RLVa

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