Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

What Is???

Ronus Lefevre
Registered User
Join date: 23 Nov 2008
Posts: 1
05-18-2009 09:51
OK, I admit it...I am ignorant about scripts.

Can someone tell me what are scripts?

How do I use/activate scripts?

Ho do I create scripts of my own?


Etc...etc...etc?

Thanks in advance :-)
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
05-18-2009 10:14
Scripts are little programs that can be placed inside of objects to give objects functions. For example, I make clocks that really work. There are many scripts that do many things. To create your own script, create an object by right clicking the ground, selecting create, then touch the ground, then, in the edit window, if you see a blue button marked 'more' push it, and you'll see 5 tabs appear. The right most tab is labeled content. Click it, that is the object's content window, which can contain other objects dragged from your inventory, or scripts, notecards, clothing, etc. To create a script, push the blue 'new script' button. Go to http://wiki.secondlife.com for scripting help.
_____________________
My tutes
http://www.youtube.com/johanlaurasia
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
05-18-2009 10:14
Scripts are stored in the inventory of an object. To find them, right click on a scripted object, chose 'Edit' and look under the 'Contents' tab. There are also some examples in the 'Scripts' folder in the 'Library' section of the 'My Inventory' folder. SL scripts are written in LSL (Linden Scripting Language).

Scripts can do a hell of a lot of things so it is best to browse the 'Scripting Tips' forum if you want to get a fairly representative idea:



The following link is the best place to read up on LSL although it's tough to follow if you haven't scripted anything at all before:



It's advisable to bookmark both of these links if you want to explore scripting in SL.

To make a script of your own, right-click in the 'Contents' of an object or in the 'My Inventory' folder and choose 'New Script'. This will make an LSL script that says "Hello Avatar" when the object containing it is touched (ie: you click it). The script will be called 'New Script' but you can rename it as anything at all just as you can write and save an original script of your own inside the document.
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
05-19-2009 06:15
The first thing any new scripter should read is /54/60/214765/1.html and /54/46/121753/1.html. They are found here in the Scripting Tips forum at the very top of the threads when you open the forum page. Reading and then re-reading these posts will save you from a lot of frustration trying to find something that isn't there in the first place. And remember, have fun. That's what it's all about and if you don't find it fun, there's really no point in doing it. I've found this is particularly true with LSL scripting.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
05-19-2009 06:44
Also, Jesse may not want to toot her own horn, but there's a very nice sample "primer" illustrating the basic elements of a LSL script on her user page at .
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at