Lsl l inden s cripting l anguage
Download
1 / 8

LSL : L inden S cripting L anguage - PowerPoint PPT Presentation


  • 73 Views
  • Uploaded on

LSL : L inden S cripting L anguage. Andrew Orr 12/17/07. “Object”-Oriented. LSL is a high-level scripting language Developed by Linden Labs for their virtual world Second Life. Simple, powerful language used to attach behaviors to the objects. Purpose of LSL.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' LSL : L inden S cripting L anguage' - lerato


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Lsl l inden s cripting l anguage

LSL:Linden Scripting Language

Andrew Orr

12/17/07


Object oriented
“Object”-Oriented

  • LSL is a high-level scripting language

  • Developed by Linden Labs for their virtual world Second Life.

  • Simple, powerful language used to attach behaviors to the objects


Purpose of lsl
Purpose of LSL

  • Control the behavior and interaction of objects within Second Life

  • Allows internet communication through HTML requests and email

  • Users create scripts to enhance their products that they make available to other SL residents



Functions
Functions compiled into byte code much like Java

There are approximately 300 preset library functions, but users can also define their own functions.

  • All Linden library functions begin with ll, eg. llSay(0, “Shoulda had take home exam!”);


Script facts
Script Facts compiled into byte code much like Java

  • Each script executes within its own chunk of the simulator’s memory.

  • Each script is given a slice of time from a set amount of time given to scripts in a simulator.

  • Multiple scripts can be attached to an object to allow for complex behaviors.


Data structures
Data Structures compiled into byte code much like Java

  • Integers

  • Floats

  • Strings

  • Vectors (used for position, direction, colors)

  • Rotations (quaternions)

  • Lists


Example script
Example Script compiled into byte code much like Java

default

{

state_entry()

{

llSay(0, "Hello, Avatar!");

}

touch(integer total_number) //executes when an avatar

{ //touches the object.

llSay(0, "Touched.");

}

}


ad