From OpenSimulator

Jump to: navigation, search
string osGetLinkInventoryDesc(integer linkNumber, string itemNameorid)
Return the description of an item located in a child prim inventory.
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
// Example for osGetLinkInventoryDesc
// This script uses the osGetLinkInventoryDesc function to get the description of a specified inventory item
// It looks for the item via key or name in the specified linked prim
// Define the link number in which to look
integer CHILD_PRIM_NUMBER = 2;
// Define the inventory name or key
string itemNameOrID = "INVENTORY_KEY_OR_NAME";
// Event handler, that is executed on script start
        // Get the description of the specified item from the linked prim
        string itemDescription = osGetLinkInventoryDesc(CHILD_PRIM_NUMBER, itemNameOrID);
        // Check if the description is not empty
        if (itemDescription != "")
            // Output to owner chat channel
            llOwnerSay("Description reads: " + itemDescription);
            // Notify if the description is empty or the item is missing entirely
            llOwnerSay("Description empty or item not found");
This function was added in

Personal tools
About This Wiki