Difference between revisions of "LlGetExperienceDetails"

From Second Life Wiki
Jump to navigation Jump to search
m
(Corrected order of returned arguments in list)
Line 2: Line 2:
{{LSL_Function
{{LSL_Function
|func=llGetExperienceDetails
|func=llGetExperienceDetails
|return_text=of details about the experience. This list has 5 components: <code>[string experience_name, key owner_id, key group_id, key experience_id, integer state, string state_message]</code>
|return_text=of details about the experience. This list has 5 components: <code>[string experience_name, key owner_id, key experience_id, integer state, string state_message, key group_id]</code>
|func_footnote=If {{LSLPT|experience_id}} is [[NULL_KEY]], then information about the script's experience is returned. In this situation, if the script isn't associated with an experience, an empty list is returned.
|func_footnote=If {{LSLPT|experience_id}} is [[NULL_KEY]], then information about the script's experience is returned. In this situation, if the script isn't associated with an experience, an empty list is returned.
|return_type=list
|return_type=list

Revision as of 13:09, 22 September 2014

Summary

Function: list llGetExperienceDetails( key experience_id );

Returns a list of details about the experience. This list has 5 components: [string experience_name, key owner_id, key experience_id, integer state, string state_message, key group_id]

• key experience_id The ID of the experience to query.

If experience_id is NULL_KEY, then information about the script's experience is returned. In this situation, if the script isn't associated with an experience, an empty list is returned.

Examples

<lsl>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 XP or info about the associated experience
      }
}</lsl>

See Also

Deep Notes

Search JIRA for related Issues

Signature

function list llGetExperienceDetails( key experience_id );