Difference between revisions of "Category:LSL Avatar/Name"
(→Names) |
m |
||
Line 12: | Line 12: | ||
! {{Hl2}} | {{LSLGC|Detected|detected}} events | ! {{Hl2}} | {{LSLGC|Detected|detected}} events | ||
|- | |- | ||
! {{Hl2}} | Display | ! {{Hl2}} | {{LSLGC|Display Name|Display}} | ||
| The name that is displayed on the screen. | | The name that is displayed on the screen. | ||
| No | | No | ||
Line 20: | Line 20: | ||
| {{HoverText|NA|Use llGetDisplayName in conjunction with llDetectedKey.}} | | {{HoverText|NA|Use llGetDisplayName in conjunction with llDetectedKey.}} | ||
|- | |- | ||
! {{Hl2}} | User | ! {{Hl2}} | {{LSLGC|Username|User}} | ||
| The name the users logs in with. | | The name the users logs in with. | ||
| Yes | | Yes | ||
Line 28: | Line 28: | ||
| {{HoverText|NA|Use llGetUsername in conjunction with llDetectedKey.}} | | {{HoverText|NA|Use llGetUsername in conjunction with llDetectedKey.}} | ||
|- | |- | ||
! {{Hl2}} | Legacy | ! {{Hl2}} | {{LSLGC|Legacy Name|Legacy}} | ||
| An interface predating [[Display Names]]. | | An interface predating [[Display Names]]. | ||
| Yes | | Yes | ||
Line 42: | Line 42: | ||
! {{Hl2}} | Legacy | ! {{Hl2}} | Legacy | ||
|- | |- | ||
! {{Hl2}} | | ! {{Hl2}} | {{LSLGC|Username}} | ||
| "username" | | "username" | ||
| "firstname.lastname" | | "firstname.lastname" | ||
|- | |- | ||
! {{Hl2}} | Legacy Name | ! {{Hl2}} | {{LSLGC|Legacy Name}} | ||
| "UserName Resident" | | "UserName Resident" | ||
| "FirstName LastName" | | "FirstName LastName" | ||
|- | |- | ||
! {{Hl2}} | Display Default | ! {{Hl2}} | {{LSLGC|Display Name|Display}} Default | ||
| "UserName" | | "UserName" | ||
| "FirstName LastName" | | "FirstName LastName" |
Revision as of 11:52, 23 November 2010
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Names
From an LSL standpoint avatars can have 3 different names.
Names: | Description | Unique | Get (in region) | Request (dataserver) | llSensor(Repeat) flags | detected events |
---|---|---|---|---|---|---|
Display | The name that is displayed on the screen. | No | llGetDisplayName | llRequestDisplayName | NA | NA |
User | The name the users logs in with. | Yes | llGetUsername | llRequestUsername | AGENT_BY_USERNAME | NA |
Legacy | An interface predating Display Names. | Yes | llKey2Name | llRequestAgentData | AGENT_BY_LEGACY_NAME | llDetectedName |
Modern | Legacy | |
---|---|---|
Username | "username" | "firstname.lastname" |
Legacy Name | "UserName Resident" | "FirstName LastName" |
Display Default | "UserName" | "FirstName LastName" |
Modern and Legacy Accounts
- Modern accounts are created by choosing a user name, which consists of one name (no spaces).
- Legacy accounts were created by choosing two names: first and last names. These two names are used together to form the username.
To maintain compatibility with legacy scripts (that expect two names), modern accounts are given the legacy last name "Resident".
The default value of the Display Name depends upon the type of the account. For legacy accounts, it's the Legacy Name. For modern accounts, it is the Username (but capitalization used at registration time is still preserved).
<lsl>string LegacyToUsername(string legacy) {
list name = llParseString2List(llToLower(legacy), [" "]); if(llList2String(name, 1) == "resident")//it's not a legacy account. return llList2String(name, 0);//first name is username return llDumpList2String(name, ".");
}</lsl>
Legacy-Name Only Functions
These functions only take Legacy Names and there are no alternative functions available.
FAQs
There are a couple of FAQs that go into much more detail about this:
- LSL FAQ: Display_Names/LSL
- General FAQ: Display_Names
Subcategories
This category has the following 5 subcategories, out of 5 total.
Pages in category "LSL Avatar/Name"
The following 9 pages are in this category, out of 9 total.