@attachall=force wears (replacing what's already worn) the contents of a shared folder under #RLV, including all of its non-hidden subfolders.
@attachall:<folder_path>=force
#RLV folder, with / between components, for example outfits/red dress. Matching is case-insensitive (the whole chat message is lowercased before it's parsed). Each component first looks for an exact name match among the subfolders. If there isn't one, it takes the first non-hidden subfolder whose name contains the component. Empty components (//) are ignored. The path must resolve to a folder strictly below #RLV, not #RLV itself.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: @addoutfitall, @attachalloverorreplace.
@attach:chest=force for a folder called #RLV/chest) therefore fails with an option error. Use a longer path or rename the folder..(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.RLVaWearReplaceUnlocked is TRUE (the default); otherwise the new item is detached again. For clothing, the first item of each type replaces what you're wearing, and further items of the same type in the folder are added on top. Body parts always replace.+ (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 itself), the command fails with an option error.llOwnerSay("@attachall:outfits/maid=force");
RlvBehaviourInfo("attachall", RLV_CMD_FORCEWEAR, RLV_TYPE_FORCE, FORCEWEAR_WEAR_REPLACE | FORCEWEAR_SUBTREE | FORCEWEAR_CONTEXT_NONE) (rlvhelper.cpp:257). There is no processor class, so the legacy switch in RlvHandler::processForceCommand() handles it (rlvhandler.cpp:2883-2900).FORCEWEAR_CONTEXT_NONE: the option is parsed as RlvCommandOptionGeneric (rlvhelper.cpp:943-972; the order is layer, attach point, UUID, shared folder, attach group, vector, number, string) and must be a shared folder.RlvHandler::onForceWear() (rlvhandler.cpp:3221-3233) checks isSharedFolder() and maps the flags to ACTION_WEAR_REPLACE 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 @attachall; see the comparison.