llGetExperienceDetails
Requires Experience
list llGetExperienceDetails(key ExperienceID)Returns a list with the following Experience properties: [Experience Name, Owner ID, Group ID, Experience ID, State, State Message]. State is an integer corresponding to one of the constants XP_ERROR_... and State Message is the string returned by llGetExperienceErrorMessage for that integer.
Parameters
-
ExperienceID(key) - May be NULL_KEY to retrieve the details for the script's Experience
The function returns a list with 6 components:
string experience_name- The name of the experiencekey owner_id- The owner’s key IDkey experience_id- The experience’s key IDinteger state- An integer status code (corresponds to XP_ERROR_… constants)string state_message- A string describing the statekey group_id- The group associated with the experience
When experience_id is NULL_KEY, information about the script’s own experience is returned. If the script isn’t associated with an experience, an empty list is returned.
Examples
Section titled “Examples”default { touch_start(integer total_number) { key xp = "9170c22b-f445-ea5d-89fa-0f2f1e144f04"; llOwnerSay(llDumpList2String(llGetExperienceDetails(xp), "\n")); // Prints: // Linden Realms // id // status msg
llOwnerSay(llDumpList2String(llGetExperienceDetails(NULL_KEY), "\n")); // Print nothing if not associated with an experience or info about the associated experience }}- If
experience_idisNULL_KEY, the function returns details about the script’s own experience - If the script isn’t associated with an experience, an empty list is returned
- Known issue: Returns 4 for
stateand “operation not permitted” forstate_messagewhile over mainland parcels that have the experience allowed (BUG-7048)