KB2/Scripting object behavior

From Second Life Wiki
Revision as of 10:27, 14 October 2010 by Jeremy Linden (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to make an object do something

Linden Scripting Language, also referred to as LSL, is a programming language that allows you to add interactive behavior to any object in Second Life. For example, you can make doors open when you click them, lights that move or flash different colors, create fire, rain, or snow with particles, or even create an entire game itself. Learning how to write scripts will open up creative possibilities, bringing your objects to life and making them interactive. A script is a list of instructions that are to be executed in the order they are written. Since these instructions are to be performed by a computer, they need to be very explicit and in a specific format and grammar (called syntax). Learning a scripting or programming language for the first time can be a daunting task; however, if you've used other programming or scripting languages, you should be able to grasp LSL quickly. Some scripting guides can be found at the LSL Portal and the Resident-maintained LSL Wiki. Be sure to check the Event Calendar inworld for scripting classes hosted by knowledgeable Residents.

Where to find scripting help

See our LSL (Linden Scripting Language) Portal, which contains links to helpful resources, including the Resident-run LSL Wiki.

The LSL Wiki is being actively expanded by Residents as a repository for scripting documentation, since any Resident can edit the Second Life Wiki. So if you've got help to give, you're welcome to share your knowledge.

Also, see the Scripting and Scripting Library forums (there are Scripting Tips and Scripting Library archives too, for contributions before February 2010).