Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I'm so new my egg hasn't hatched!

Barista Legion
Registered User
Join date: 9 Nov 2006
Posts: 2
12-21-2006 04:40
I feel suck a dork asking this but try as I may I can't find an answer.

I have scripts by the cart load but can't find how to apply them to an object. Eg: I've made a new script of a door locking system someone posted in the forum, which I copied and pasted. How do I apply that to a particular door?
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
12-21-2006 04:47
If you've got code from outside SL and want to add it into an object:

1. Right-click on the object and select "Edit..."

2. Go to the "contents" tab in the window that appears (you might have to select "more" so that the full window appears) and click the New Script button. A new script, appropriately called New Script, will appear in the object's contents.

3. Double click that script to open it up. Select the whole lot of the text there and delete it. Then copy and paste your code in. Click "Save" (or press ctrl-S) and, assuming the script is okay, it will compile and save it.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!

http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal

http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
Barista Legion
Registered User
Join date: 9 Nov 2006
Posts: 2
12-21-2006 04:55
Thanks so much for the speedy reply

The door in question is on a rented property. It seems to be no modify and I can't delete the script. I assume I can't apply a new one to that - do you have to own the item to change it?
DrDoom Obviate
Registered User
Join date: 19 Nov 2006
Posts: 2
12-21-2006 05:27
The object in question must be Modifiable in order to add a script to it.