Difference between revisions of "LlGetExperienceDetails"

From Second Life Wiki
Jump to: navigation, search
(Created page with "Category:Experience Tools {{LSL_Function |func=llGetExperienceDetails |func_desc=Returns a list of details about the experience. |func_footnote=The returned list has 5 compon…")
 
m
Line 2: Line 2:
 
{{LSL_Function
 
{{LSL_Function
 
|func=llGetExperienceDetails
 
|func=llGetExperienceDetails
|func_desc=Returns a list of details about the experience.
+
|return_desc=of details about the experience.
|func_footnote=The returned list has 5 components: Experience Name, Owner ID, Group ID, Experience ID, state, state message
+
|func_footnote=The returned list has 5 components: <code>[string experience_name, key owner_id, key group_id, key experience_id, string state, string state message]</code>
 
|return_type=list
 
|return_type=list
|p1_type=key|p1_name=experience_id|p1_desc=The ID of the experience to query. Can be NULL_KEY to request information on the script's experience.
+
|p1_type=key|p1_name=experience_id|p1_desc=The ID of the experience to query. Can be [[NULL_KEY]] to request information on the script's experience.
 
|also_functions=
 
|also_functions=
 
*[[llAgentInExperience]]
 
*[[llAgentInExperience]]
Line 23: Line 23:
 
           llOwnerSay(llDumpList2String(llGetExperienceDetails(NULL_KEY), "\n"));
 
           llOwnerSay(llDumpList2String(llGetExperienceDetails(NULL_KEY), "\n"));
 
           // Print nothing if not associated with an XP or info about the associated experience
 
           // Print nothing if not associated with an XP or info about the associated experience
       }  
+
       }
   }</lsl>}}
+
   }</lsl>
 +
|cat1=Experience
 +
}}

Revision as of 21:03, 8 July 2014

  Either 'func_desc' or 'return_type' & 'return_text' must be defined

(Please use 'return_text' & 'return_type' or 'func_desc' to summarize the functions actions.)

Summary

Function: list llGetExperienceDetails( key experience_id );

Returns a list

• key experience_id The ID of the experience to query. Can be NULL_KEY to request information on the script's experience.

The returned list has 5 components: [string experience_name, key owner_id, key group_id, key experience_id, string state, string state message]

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

Functions

Deep Notes

Search JIRA for related Issues

Signature

function list llGetExperienceDetails( key experience_id );