LlGetExperienceDetails
Looking for the current API? Open the llGetExperienceDetails reference →
Function notes
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.Return value notes
Returns a list of details about the experience. This list has 6 components:
[string experience_name, key owner_id, key experience_id, integer state, string state_message, key group_id]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 XP or info about the associated experience
}
}See also: functions
History
- BUG-7048 - llGetExperienceDetails returns 4 for
stateand "operation not permitted" forstate_messagewhile over mainland parcels that have the experience allowed.
Shared wiki helpers
The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.
Template:LSL Function/Experience
Original shared helper source (conditional wiki logic is not evaluated)
<noinclude>{{Multi-lang|category=LSL}}</noinclude>{{LSL Injection Test}}{{#if:
{{#vardefine:notes|{{#var:notes}}
<h4>Compiling</h4>
For a script to be associated with an {{LSLGC|Experience}}...
* It must be compiled with a client that is Experience aware,
* The "Use Experience" checkbox must be checked,
* And one of the users Experience keys selected.
{{LSL Tip|Not all [[TPV]]s have this functionality.}}
}}
{{#ifeq:{{{1|}}}<noinclude>true</noinclude>|true|
{{#vardefine:header_footnote_last|{{#var:header_footnote_last}}{{PBR}}
For this {{#var:article_type}} to work, the script must be compiled into an {{LSLGC|Experience}}.{{PBR}}
}}
{{#vardefine:caveats|{{#var:caveats}}
* If you recompile a script that was previously associated with an Experience but do so with a client that lacks the ability to compile scripts into an experience the script will lose the associated Experience.
}}
}}
}}<noinclude>
{| {{Prettytable}}
|-{{Hl2}}
! #var
! value
|-
{{VarPair|header_footnote_last}}
|-
{{VarPair|spec}}
|-
{{VarPair|caveats}}
|-
{{VarPair|notes}}
|}
</noinclude>Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.