Difference between revisions of "How do I make an object do something?"

From Second Life Wiki
Jump to navigation Jump to search
(No difference)

Revision as of 08:22, 14 October 2009

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.