Difference between revisions of "KB2/Scripting object behavior"
m (1 revision: Porting KB2 working drafts to public wiki)
Revision as of 14:25, 25 October 2010
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
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.