@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.
@attachallthisoverorreplace[:<attachpt>|<clothing_layer>|<uuid>]=force
@addoutfitallthisoverorreplace…=force (undocumented alias, same code path)
#RLV; otherwise nothing happens.spine, l forearm. Every object worn on that point that comes from #RLV contributes its folder.shirt, pants, alpha…). Every worn item on that layer that comes from #RLV contributes its folder.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.// 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");
@addoutfitallthisoverorreplace is accepted as an exact alias (same branch of code); it is not mentioned in the spec.=force form can be blacklisted with attachallthisoverorreplace%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:2272-2282; =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.…this forms: getFullPath(item, option) :5414-5508; the comma-separated result is split and each path attached separately (a folder name containing a comma would therefore break). getItem() :5563-5576 maps the issuing object to its inventory item. A no-modify object inside a point-named subfolder resolves to the subfolder's parent.canAttach() :6094-6140, canWear() :5877-5957, canAttachCategory() :5621-5725; attach-time enforcement in llviewerjointattachment.cpp:247-300.mkrlinterface.cpp:2753-2767, 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 @attachallthisoverorreplace; see the comparison.