Introduction of scripting
One of the more daunting challenges for novice SL content creators is learning how to script using the Linden Scripting Language (LSL). This page provides links to both text and video tutorials; and, at the bottom of this page, to repositories of free ready-made scripts; but maybe a great place to start would be by attending one of the regular in-world classes. You can find current and upcoming classes by clicking the Search button, selecting the Events tab, and entering ‘scripting’ as your search term:
But you’ll in any case want to consolidate what you’ve learned with some additional tutorials and reference documents. The following resources are recommended:
- the Eclipse IDE with the LSL Plus plugin (see my more extensive tutorial).
You can also download further plugins for Eclipse from the following repositories:
Eclipse Plugin Central
- or you can use a dedicated LSL editor such as: LSL-Editor
“… a standalone LSL (Secondlife) script editor and run-time environment for Windows [that] compiles and executes LSL scripts. No SecondLife viewer is needed nor connection to the SecondLife grid.”
- Second Life LSL Portal
A portal to numerous useful tutorials.
and free scripts:
- Linden Script Tutorial Exhibition (Bromley College)
… and, on the web:
Linden Script Tutorial (blog)
“This weblog is an account of the development of Bromley College’s interactive Linden Scripting Language tutorial that is available in-world in Second Life.”
Extensive tutorials and examples
- College of Scripting, Music, and Science
A useful location for learning most of the basics of SL; but also a really good resource for elementary scripting tutorials, with clear graphical explanations. Start at the Level 1 Beginner Scripting sign and work your way to the right, following the blue arrows on the floor. (Also many ready-made (purchasable) scripts for those too timid to write their own.)
- ‘Using the Linden Script Language’
Gentle introduction to scripting, together with some examples. Very useful for the beginner.
- ‘Using the Linden Scripting Language’
An in-depth 8-page tutorial from Dr Dobb’s High Performance Computing series, authored by Michael Rymaszewski, Wagner James Au, Mark Wallace, Catherine Winters, Cory Ondrejka, and Benjamin Batstone-Cunningham.
- ‘SL Scripting Guide’ at 2lifeblog.com
- ‘Open Source Scripting’ group (Second Life) wiki
Scripts and projects include Pandora Chatbot, a chatbot that connects to an ALICE/AIML website.
- ‘Getting started in LSL scripting in Second Life’
Entry level tutorial from Instructables.com
- Marcus Endicott’s Second Life Travel Guide
As its name suggests, this site is packed with more than just scripts. The scripts page itself is useful listing of links to scripts for common tasks as well as to other script repositories.
- SecondLife HowTo
Although “An Unofficial Step By Step Guide to Content Creation in Second Life”, most of the tutorial and guides relate to scripting in one way or another … ‘HowTo Create a Networked Vending Machine’, ‘HowTo Connect a Second Life script to a mysql database’, ‘HowTo Make XMLRPC calls to an in-world object’, …
You’ll also find it helpful to watch the following YouTube videos:
 ‘An Overview of Scripting in Second Life’ by Preston Straff. No more than a mere glimpse of code in this one, though a clear explanation of how LSL works with states and events.
 Rather whimsical, but a beautifully clear tutorial, is the follwing walkthrough of how to create a ‘Dance Animation’.
Some online repositories of ready-made scripts
SL Scripts at Wo0hoo
Free SL Scripts at Gendersquare.org