Difference between revisions of "LSL 101/Simple Script Skeleton"

From Second Life Wiki
Jump to navigation Jump to search
(New page: The Linden Scripting Language (or LSL) is a relatively simple computer programming language specifically designed for controlling objects in the SL environment. More specifically, it is a ...)
 
m (+LSL Wikibook Index)
Line 1: Line 1:
The Linden Scripting Language (or LSL) is a relatively simple computer programming language specifically designed for controlling objects in the SL environment. More specifically, it is a language for instructing a computer (the SL server) to take some action. Modeled loosely after natural human language, a computer language has words, punctuation, grammatical rules and  meaning.  These language rules are are much simpler for a computer language than for a natural human language. But unlike a natural language, the rules are ruthlessly enforced.  The computer that executes the instructions in the script is not expected to be anything more than the big dumb machine that it it is.  One consequence of this is that there are certain formalities that always have to be followed.<br>
{{LSL Wikibook Index}}The Linden Scripting Language (or LSL) is a relatively simple computer programming language specifically designed for controlling objects in the SL environment. More specifically, it is a language for instructing a computer (the SL server) to take some action. Modeled loosely after natural human language, a computer language has words, punctuation, grammatical rules and  meaning.  These language rules are are much simpler for a computer language than for a natural human language. But unlike a natural language, the rules are ruthlessly enforced.  The computer that executes the instructions in the script is not expected to be anything more than the big dumb machine that it it is.  One consequence of this is that there are certain formalities that always have to be followed.<br>


Here is the simplest possible valid LSL script.  In fact, it is entirely formalities; it actually doesn't ask the computer to do anything.
Here is the simplest possible valid LSL script.  In fact, it is entirely formalities; it actually doesn't ask the computer to do anything.

Revision as of 13:41, 5 May 2009

The Linden Scripting Language (or LSL) is a relatively simple computer programming language specifically designed for controlling objects in the SL environment. More specifically, it is a language for instructing a computer (the SL server) to take some action. Modeled loosely after natural human language, a computer language has words, punctuation, grammatical rules and meaning. These language rules are are much simpler for a computer language than for a natural human language. But unlike a natural language, the rules are ruthlessly enforced. The computer that executes the instructions in the script is not expected to be anything more than the big dumb machine that it it is. One consequence of this is that there are certain formalities that always have to be followed.

Here is the simplest possible valid LSL script. In fact, it is entirely formalities; it actually doesn't ask the computer to do anything.

<lsl> default {

    state_entry()
    {
    }

} </lsl>