Linden Scripting Language
|
Linden Scripting Language, or LSL, is the programming language used by players in Second Life, a Massive Multiplayer Online Game by Linden Lab. LSL scripts can control the behavior of in-world objects. LSL has a syntax similar to C. LSL allows objects to interact with the Second Life world and the Internet (via email and XML-RPC).
A sample Hello World Program looks like
default { state_entry() { llSay(0,"Hello World!"); } }
Linden Scripting Language is a state-event driven scripting language, it consists of multiple programming states each containing a list of events which may be triggered while the program is within that state. Linden Scripting Language is the only known complete language of this kind.
At time of authoring, there are over 380 library functions available, with the ability for users to declare additional global functions within programs. More than 30 events allow a script to react to various kinds of input such as mouseclicks, keyboard controls, chat, email, or collisions (from the integrated physics engine). LSL is a strongly typed language that is compiled to bytecode before runtime execution in a virtual machine on one of Linden Lab's servers. Second Life 2.0 scheduled for Q1 2006 will use Mono for .net virtual machine and the scripts will be compiled to .net bytecode and run on that.
External links
- Second Life (http://www.secondlife.com/) official website
- Linden Lab (http://lindenlab.com/) official website
- LSL Wiki (http://www.secondlife.com/badgeo), a community effort to supplement the available LSL documentation