This coming Wednesday we will be looking at the basics of scripting (programming) in Second Life.
To help ease you into scripting I have added a number of resources below that you should take a little time to browse through. I have also placed a number of scripting examples onto our parcel for you all to interact with and consider the processes that occur.
The LSL Portal
The Second Life Wiki: LSL Portal. This is the index for the Linden Scripting Language (LSL) and contains all the EVENTS and FUNCTIONS available to the language. The ‘Getting started with LSL’ section is worth having a look over for those who have never programmed before.
A Script Deconstructed
This SLENZ Build Deconstruction post looks at the welcome script that I created for the SLENZ Build. It provides the full script as a pdf file and talks the reader through the scripts construction. This isn’t about learning to create this script rather just think about the process and the different options that needed to be built into the script to have it function appropriately for the user.
Consider how it would feel for the user if there wasn’t a function built into it to recognise that the user had already received the dialog box and they were constantly spammed with this every time they were detected. Scripting is very much about usability.
A Gentle Introduction to Scripting in Second Life
This Wikibook is written for the SL user who has no experience with computer programming; or, for users with programming experience who would like a gentle introduction to LSL.
Collision Based Effects
Also provided are two resources accessible from our inworld parcel. These look at collision based EVENTS and FUNCTIONS. One is another script deconstruction from the SLENZ build, the other more visual in that it contains a video of three different uses of the llVolumeDetect FUNCTION. The stair described in the deconstruction has been set up on our parcel as one of the script examples mentioned at the beginning of this post.