@attachoverorreplace is a force command that makes the viewer wear the contents of the folder at the given path under #RLV.
Only the folder itself is processed (plus no-modify items in specially named subfolders, see below); other subfolders are ignored. Use @attachalloverorreplace to include them.
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 @attach: 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 @attach does that too, but the spec warns that it may revert to unconditional replacing in the future.
@attachoverorreplace:<folder1/.../folderN>=force
@addoutfitoverorreplace…=force (undocumented alias, same code path)
#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.Restraints/cuffs prefers a single folder literally named “Restraints/cuffs”, and a path element cuffs also matches a folder called “Leather Cuffs”. Among equally long matches the first one found wins, unless a later one matches exactly. Folders whose name begins with . are never matched.Cuff (l forearm); the right-most, then longest, match wins. (root) is treated as (avatar center).rez_attachment). The spec says such objects are not attached; the code attaches them.#RLV itself are never attached, even if the path resolves to the root.// #RLV/Restraints/Leather cuffs
llOwnerSay("@attachoverorreplace:Restraints/Leather cuffs=force");
// A folder named "+Bells" always stacks, whatever the command
llOwnerSay("@attachoverorreplace:Restraints/+Bells=force");
@addoutfitoverorreplace is accepted as an exact alias (same branch of code); it is not mentioned in the spec.=force form can be blacklisted with attachoverorreplace%f in RestrainedLoveBlacklist; the addoutfit… alias is matched against its own name, so blacklisting one does not blacklist the other.addoutfit… aliases, gesture activation or EEP settings items.RRInterface::force(), RRInterface.cpp:2205-2207; =force is routed there from reallyHandleCommand() (:1923-1928). The #RLV/ prefix strip is at :2004-2011, the blacklist check at :2013-2016.forceAttach(), :3524-3667 (stack-prefix test :3536-3541, root exclusion isRoot, no-mod subfolders :3615-3655, recursion :3657-3660).getCategoryUnderRlvShare() :3123-3189 with match() :342-364; attachment point from name: findAttachmentPointFromName() :3293-3382.canAttach() :6094-6140, canWear() :5877-5957, canAttachCategory() :5621-5725; attach-time enforcement in llviewerjointattachment.cpp:247-300.mkrlinterface.cpp:2654-2659, forceAttach() :4502-4677).+ in CoolVL; Marine reads it from RestrainedLoveStackWhenFolderBeginsWith.RestrainedLoveNoSetEnv is off as well as @setenv not being restricted.#RLV/ compares the already lower-cased option with the upper-case "#RLV/~" (mkrlinterface.cpp:2394-2399), so the prefix is effectively never stripped in CoolVL; Marine strips #rlv/.(root) to avatar center; CoolVL uses root for the Avatar Center point and accepts the point name anywhere between ( and ).attach… names in its command table (:450-462), so the addoutfit… aliases cannot be blacklisted there and do not appear in @getcommand.=force commands fail in CoolVL but are silently accepted by Marine; not relevant to valid names.This command works differently from RLVa's @attachoverorreplace; see the comparison.