Difference between revisions of "User:Fred Gandt/Scripts/Functions"
Fred Gandt (talk | contribs) m (Just starting a page off. Will sort out later. Need to code review all my previous work.) |
Fred Gandt (talk | contribs) m |
||
Line 6: | Line 6: | ||
== My Contributions == | == My Contributions == | ||
'''I have implemented a V# system to make it more obvious if a script is updated. The V# forms part of the title of each script.''' | '''I have implemented a V# system to make it more obvious if a script is updated. The V# forms part of the title of each script.''' | ||
'''If you have any comments about the content of this page please post them [[User_talk:Fred_Gandt/Scripts/ | '''If you have any comments about the content of this page please post them [[User_talk:Fred_Gandt/Scripts/Functions | HERE]]''' | ||
'''All my scripts are written for compilation as [[Mono|MONO]]''' | '''All my scripts are written for compilation as [[Mono|MONO]]''' | ||
Line 43: | Line 41: | ||
'''Here are some stuffs''' | '''Here are some stuffs''' | ||
=== GetUniqueListEntries === | === GetUniqueListEntries ( V1 )=== | ||
Feed a list in and get out a list which contains no duplicate entries. Nice and fast. | Feed a list in and get out a list which contains no duplicate entries. Nice and fast. | ||
<lsl>list GetUniqueListEntries(list src) | <lsl>// V1 // | ||
list GetUniqueListEntries(list src) | |||
{ | { | ||
integer index = 0; | integer index = 0; |
Revision as of 12:59, 1 May 2010
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
My Contributions
I have implemented a V# system to make it more obvious if a script is updated. The V# forms part of the title of each script.
If you have any comments about the content of this page please post them HERE
All my scripts are written for compilation as MONO
More Pages
Free Scripts (content constantly updating)
More Free Scripts (content constantly updating)
Even More Free Scripts (content constantly updating)
Even More More Free Scripts (content constantly updating)
Even More More More Free Scripts (content constantly updating)
Legal Stuff
The legal stuff about contributing to this wiki (worth reading).
PJIRA Issue Tracker
The issues I have filed on the PJIRA
Tuition
Tuition scripts, notes, videos and screenshots etc. (hardly any content yet)
Functions
Here are some stuffs
GetUniqueListEntries ( V1 )
Feed a list in and get out a list which contains no duplicate entries. Nice and fast.
<lsl>// V1 //
list GetUniqueListEntries(list src) {
integer index = 0; list output = []; list entry = []; do { output += (entry = llList2List(src, 0, 0)); src = llDeleteSubList(src, 0, 0); while((index = llListFindList(src, entry)) != -1) src = llDeleteSubList(src, index, index); } while(llGetListLength(src)); return output;
}</lsl>