LSL 101/Simple Script Skeleton

From Second Life Wiki
< LSL 101
Revision as of 14:36, 5 May 2009 by Omei Turnbull (talk | contribs) (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 ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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>