LSL Wiki Mirror 10-5-2006: Examples

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::

Examples


These are examples of LSL scripts you may find useful. For more, try the ScriptLibrary page or the Script Library forum on the Second Life website.

You may use these scripts freely as they stand, or as a base to build your own. Taking them and selling them would be considered impolite, however. If you want to use them in a "commercial" script, talk to the original author first.

Script Name: Purpose: Author:
ExampleAnimationBasic quickly demonstrates the basics of animating an avatar CatherineOmega
ExampleAnimationScript animates an avatar XylorBaysklef
ExampleControls demonstrates the use of llTakeControls ReadyJack
ExampleEventOrder says each event as it happens AngelaSalome
ExampleGetRootPos get link parent position from within child XylorBaysklef
ExampleGetRootRot get link parent rotation from within child XylorBaysklef
ExampleGun a gun script that fires physical bullets ReadyJack
ExampleLinkMessage communicate between prims CatherineOmega
ExampleListConversion convert lists to strings and back ReadyJack
ExampleSafeListConversion converts lists to strings and back, with no possible errors KeknehvPsaltery
ExampleLookAt looks at an agent JimBunderfeld
ExampleMoney waits for payment and refunds invalid amounts CatherineOmega
ExampleNumberConversion charset/number system conversion EzharFairlight
ExampleParticleScript creates particle effects AmaOmega
ExampleParticleScript1 modified version EepQuirk
ExamplePointChildAtTarget point a selected axis of a child prim at a region-coordinate target CrossLament
ExampleProximityDoor controls access to an area JordanCotton
ExampleSelfReplication demonstrates self replication StefanNilsson
ExampleStates multiple states JimBunderfeld
ExampleStatesConcise 2-state script ChromalBrodsky
ExampleArgumentMultiplexing argument multiplexing, eg for linkmessages HughPerkins
ExampleLeftOrRight A function that returns whether one vector is to the left or right of another TiPBaKeR
ExampleRPC2PHP communicating with a PHP backend system MarcEisenberg
ExampleHUDCommunication Allows a object only listen to your huds or you YiffyYaffle
ExampleFixedPrecision Truncate Floats to fixed precision GigsTaggart
Example32BitHash Hash keys or strings into a 32 bit integer GigsTaggart
ExampleAuthenticatedChat Autheticated Chat. GigsTaggart
ExampleText2Leet Converts regular text into leet speak. Jadz0rConover
ExampleText2CapAlt Converts regular text into the capital alternation format. Jadz0rConover
Posting Guidelines: Please preface new example script names with "Example", as in "ExampleAnimationScript". Also, put a return link to "Examples" at the end of the page. This makes it so if you click on this page's title, all the examples will come up. Remember to enclose your code using the "code" tags! (%% code goes here. %%)

Q: What's the difference between the Script Library and the Examples page?
A: The Script Library is for full scripts. The Examples page is best suited for explaining specific functions, or parts of scripts.


HomePage | ScriptLibrary
There is one comment on this page. [Display comments/form]