How do I make an object do something?

From Second Life Wiki
Revision as of 17:00, 31 December 1969 by Fritz Linden (Talk | contribs)

Jump to: navigation, search

This article is part of the Extended Second Life Knowledge Base that includes advanced and specialized information. This information was originally provided by Linden Lab, but is not actively maintained nor guaranteed to be accurate. Linden Lab does not certify nor assume any responsibility for this information.

See the official Second Life Knowledge Base for the most current information.

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 on the Second Life Wiki and the Resident-maintained LSL Wiki. Be sure to check the Event Calendar inworld for scripting classes hosted by knowledgeable Residents.