The current capabilities of Linden Scripting Language (LSL) allow limited interaction with avatars, such as temporary attachments. However, there is no way to programmatically add or remove items from an avatar's worn components, outside of the manual processes performed by the user. This proposed feature would expand LSL to allow script-based control over an avatar's inventory, enabling dynamic and context-sensitive attachment or removal of objects.
Proposed Functionality:
  • Add new LSL functions to allow adding or removing items from an avatar's outfit or attachments. For example:
llAttachItem(string itemUUID, integer attachPoint)
llDetachItem(string itemUUID)
llWearItem(string itemUUID)
llUnwearItem(string itemUUID)
  • Items involved must already exist in the user's inventory, ensuring that permissions are respected. The user retains full control by granting or revoking a script's permissions.
  • The functions would respect existing attachment point and inventory restrictions, ensuring that no item is attached to conflicting points or worn beyond standard stacking limits.
  • Functions would only work for the avatar running the script or interacting with the scripted object, maintaining privacy and security.
Use Cases:
  • Dynamic Context-Based Customisation: Automatically add or remove attachments or clothing items based on the avatar's location, sim region, or even scripted events within the environment. For instance, entering a specific themed area could automatically equip appropriate accessories or clothing.
  • Roleplay Enhancements: Roleplay sims could use the feature to apply specific uniforms, tools, or items relevant to the scenario upon entry, or to remove them when leaving.
  • Event and Venue Interactivity: Avatars attending events could automatically equip promotional items or event-specific wearables without requiring manual handling.
  • Environmental Adaptation: Attachments or wearables could change dynamically based on the environment, such as equipping a raincoat in a weather-themed sim or removing accessories when entering water.
  • Enhanced User Interfaces: HUDs or scripted objects could allow users to manage their avatar's wardrobe more intuitively, such as "quick change" functionality for complex setups.
  • Automated Personalisation: Avatars could have scripts that automatically swap items based on time of day, mood, or other user-defined triggers.
This feature would significantly expand Second Life’s interactivity and customisation options, allowing users to create more dynamic and immersive experiences. It would be particularly valuable for creators, event organisers, and roleplay communities, fostering creativity and innovation within the platform.