@attachallthisover=force wears (adding to what's already worn) the contents of the shared folder(s) that contain a worn item (by default, the issuing object itself), including all of its non-hidden subfolders.
@attachallthisover[:<target>]=force
spine): the folders of everything worn on that point;shirt): the folders of every worn wearable of that type;#RLV count. If an item lives in a folded folder (.(spine), .(nostrip)), the folder's parent is used. A shared-folder path is not accepted here, and any other option fails with an option error.All RLVa force-wear commands share one handler (RLV_CMD_FORCEWEAR). They differ only in three flags taken from the dictionary entry:
| Command | Action | Scope | Option selects |
|---|---|---|---|
| attach | replace | folder only | #RLV path |
| attachall | replace | folder + subfolders | #RLV path |
| attachover | add | folder only | #RLV path |
| attachallover | add | folder + subfolders | #RLV path |
| attachthis | replace | folder only | worn item (self, point, layer, UUID) |
| attachallthis | replace | folder + subfolders | worn item (self, point, layer, UUID) |
| attachthisover | add | folder only | worn item (self, point, layer, UUID) |
| attachallthisover | add | folder + subfolders | worn item (self, point, layer, UUID) |
| detachall | remove | folder + subfolders | #RLV path |
| detachthis | remove | folder only | worn item (self, point, layer, UUID) |
| detachallthis | remove | folder + subfolders | worn item (self, point, layer, UUID) |
| detach | remove | folder (node) | path, attachment point, point group, UUID or none |
Synonyms that map to exactly the same flags: @addoutfitallthisover.
.(point) folder) gives an attachment point, or if RLVaEnableSharedWear is TRUE (the default). With shared wear, items with no point named attach wherever the viewer would normally put them.+ (the RestrainedLoveStackWhenFolderBeginsWith setting) switches replace to add, and a name starting with the RestrainedLoveReplaceWhenFolderBeginsWith string (empty by default) switches add to replace..) are processed recursively, plus folded folders and folder links.@addoutfit, @remoutfit, @addattach, @remattach, @detach) in the same message is processed first.#RLV, nothing happens and the command still succeeds. A UUID that isn't one of your attachments fails with an option error.// Act on the folder this object lives in
llOwnerSay("@attachallthisover=force");
// Act on the folder(s) of whatever is worn on the spine
llOwnerSay("@attachallthisover:spine=force");
RlvBehaviourInfo("attachallthisover", RLV_CMD_FORCEWEAR, RLV_TYPE_FORCE, FORCEWEAR_WEAR_ADD | FORCEWEAR_SUBTREE | FORCEWEAR_CONTEXT_OBJECT) (rlvhelper.cpp:263). There is no processor class, so the legacy switch in RlvHandler::processForceCommand() handles it (rlvhandler.cpp:2883-2900).FORCEWEAR_CONTEXT_OBJECT: the option goes through RlvCommandOptionGetPath (rlvhelper.cpp:1025-1075), whose items are mapped to folders by RlvInventory::getPath() (rlvinventory.cpp:214-237, folded folders map to their parent). Delayed resolution uses RlvCommandOptionGetPathCallback with a 30-second expiry (rlvhelper.cpp:982-1022) and RlvHandler::onForceWearCallback() (rlvhandler.cpp:3235-3247).RlvHandler::onForceWear() (rlvhandler.cpp:3221-3233) checks isSharedFolder() and maps the flags to ACTION_WEAR_ADD and FLAG_MATCHALL. RlvForceWear::forceFolder() (rlvhelper.cpp:1275-1398) and RlvWearableItemCollector (rlvinventory.cpp:687-849) choose the items. The batch is committed by RlvForceWear::done() (rlvhelper.cpp:1731+), called at llviewermessage.cpp:3203-3204.RlvInventory::getSharedFolder(), with partial matching on by default (rlvinventory.cpp:267-308, rlvinventory.h:62).This command works differently from RLV's @attachallthisover; see the comparison.