| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

LSL: Linden Scripting Language

This version was saved 15 years, 1 month ago View current version     Page history
Saved by Randall Sadler
on March 4, 2009 at 9:12:19 pm
 

This scripting workshop will take place almost entirely in-world. However, you can find some links to in-world resources, internet resources, and videos on scripting techniques in Second Life below.

 


 

Why learn scripting? Well, beyond the relative ease with which you will be able to bend the environment (and objects you find along the way) to fit your pedagogical goals, Marc Prensky argues that scripting/programming will redfine our concept of literacy in the 21st century. You can script your own avatar (via gestures and heads-up displays or HUDs) or prims.

 


Links to In-World Scripting Resources:

For the SLurls (Second Life URLs) you'll find below, have Second Life open in the background.  When you click on the SLurl, it will bring up a new webpage.  Click on the "teleport" button and it will open up a landmark on your Second Life screen.

 

College of Scripting, Music, and Science

 If you would like to learn a lot about scripting in Second Life, this may be the location for you.  The college is located in an 8-level building, with the first level containing information about "basic scripting," with each succeeding level working up to the 8th level, which covers "rotations & pi math."  Each level contains detail information and illustration for how to perform a variety of scripting functions.

 http://slurl.com/secondlife/Horsa/45/243/84

 

 Second Life Free Script Library

If you don't really want to create your own scripts from scratch (and who can blame you for that?), this location provides a large number of scripts for free.  These range from the educational (SLurl maker, news in world) to the purely fun (the ever popular "talk like a pirate" script)! 

 http://slurl.com/secondlife/Nimnam/233/78/601

 

 IBM Codestation

 Yes, that is "the" IBM.  At their site they provide a number of free scripts, many of which have potential educational applications.  In the building opposite the script location there are also some free objects that many will find useful

 http://slurl.com/secondlife/IBM CODESTATION/125/30/43

 

 EduNation

 At EduNation (and at the campuses for a variety of other education-focused islands) you can often find scripts for free that are directly related to education.  These might include scripts for using youtube videos or blogs in SL, to scripts for doing SL powerpoint presentation (or something quite similar, at least!).

 http://slurl.comh/secondlife/EduNation II/143/214/24

 

Info Island ICT LIbrary

Over 50 education-related scripts ranging from highlight boards to flickr scripts. 

http://slurl.com/secondlife/Info Island/44/220/33

 


Links to Internet-Based Scripting Resources:

 

Autoscripter

This page can create a number of common scripts for you by just clicking a few choices!

http://www.3greeneggs.com/autoscript/

 

SimTeach Scripts

Some education focused scripts.

http://www.simteach.com/wiki/index.php?title=Scripts

 

Linden Scripting Language (LSL) Portal

The offical portal that introduces LSL

http://wiki.secondlife.com/wiki/LSL_Portal

 

Scratch for Second Life (S4SL)

This is a downloadable tool that allows users to create custom scripts through a graphical interface.  With this system you just drag graphical blocks together to illustrate what you wish to do and the script is generated for you!

http://web.mit.edu/~eric_r/Public/S4SL/

 


 Script Tutorials on Video:

 

URL script

This simple script will let you put a URL into an object in Second Life so that when the object is clicked, it will open the webpage.

 

YouTube plugin error

Direct link: http://youtube.com/watch?v=EENiLti8Ohk

 

Here is a URL script like discussed in the video:

//replace the URL immediately below with your own.

 

string Url = "http://www.com";

 

default {

on_rez(integer start_param) {

llResetScript();

}

touch_start(integer total_number) {

llLoadURL(llDetectedKey(0), "Click to go to url", Url);

}

dataserver(key queryid, string data) {

Url = "https://www..com" + llEscapeURL(data);

}

}

 

 

 

Notecard Script

Another simple script that helps you give out a notecard that you've put in an object.

 

YouTube plugin error

 

Direct link: http://www.youtube.com/watch?v=N-K-hgZg76c

 

And here is the script discussed in the video:

 

integer x;

default

{

touch_start(integer total_number)

{

for(x = 0; x < total_number; x++)

llGiveInventory(llDetectedKey(x), llGetInventoryName(INVENTORY_NOTECARD, 0));

}

}

 


 

In-World Scripting Resources:

 

 

College of Scripting, Music, and Science.

This is the best place in SL to learn about scripting. An 8 floor building--the first floor basics scripts, and the 8th floor very complex.

 

Trapper Free Script Library

No tutorials, but a lot of free scripts. I've used a number of these.

 

Sloodle Project in Second Life.

Sloodle is an Open Source scripting project which integrates the Second Life multi-user virtual environment and the Moodle learning-management system.http://slurl.com/secondlife/virtuALBA/252/212/33

 


 

Internet Links:**

 

Linden Scripting Language (LSL) Wiki page.

This is a page set up by Second Life for information on scripting. While useful, I would say that it is a bit focused on more advanced users.

 

LSL Wiki

LSL Wiki is an open documentation resource to help scripters of all skill levels.

 

WikiWorks Script Libraries.

A number of free scripts as well as links to other scripting resources.

 

 

Script Generator.

This handy little tool has you click a few boxes and then automatically generates several types of scripts for you. Easy!

 

 

Free scripts available to copy.

 

Of course, if you are smart/crazy/brave enough to code it alone, at least use LSL-Editor, a standalone LSL script editor and run-time environment for Windows that compiles and executes LSL scripts without need to access the grid. Will make your decidedly less-traveled road a bit less thorny.

 

If you insist on making your life even more difficult by refusing to leave your current editing program (and this is way beyond our bailiwick), you can use Shill, which keeps an up-to-date list of LSL syntax files other editors like BBEdit, EMacs, etc. Not for the faint of heart.

 

 

As with building, you can use third-party applications like Poser or Maya and these templates to create a customized avatar as well as customized gestures to upload into SL.

 

If you are feeling a bit overwhelmed, do not fear! There's no status in reinventing the wheel. LanguageLab.com, for example, has an extensive list of sims and builds that will eventually be available for some form of public use....

 


 

Comments (0)

You don't have permission to comment on this page.