Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Multiple scripts in one prim?

KC Despres
Werebutterfly
Join date: 7 Apr 2007
Posts: 166
11-24-2007 10:11
I can't think of anything more tedious than learning scripting, so I'm sorry if this is an obvious question.

I tried to put a sliding front door to my skybox and found it moved 90 degrees from the direction I expected. This was actually pretty cool, I thought, so I built this whole pretense of a rails and so forth around it to explain it. I then placed this unconventional door all through the house. I like it and don't want to mess with the scripts and possibly ruin what I've got.

Now I want the door to make a sound when it opens, so I uploaded a little swishing humming noise I found. Can I put another script in the prim to play the sound when touched along with the one that moves the door?

Better yet, I'd prefer the door to close itself after a time, which it doesn't do now. I have to remember to manually close them. I also would prefer it moved a tad bit slower. Should I just hire someone to fix these doors the way I'd like them and would this be expensive?

Spending hours trying to understand what for you may be a walk in the park is not an option. --KC
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-24-2007 11:07
It just all depends on what you want to spend your finite amount of time in SL doing. For me, scripting is a joy and I would suggest that we could walk you through what needs to be done. But then again, even though I own a copy of PS, I would rather spend my time scripting intsead of creating textures. So I buy my textures instead:)

If you want help, we would be more then glad to help, otherwise I would suggest putting an add in the "Products Wanted" section where people can contact you with thier prices for doing the script per your specifications. What you want is pretty simple and I can not imagine it being too terribly expensive.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
11-24-2007 11:35
and yes you can put more than 1 script in a prim, this is actually the original intent of the lindens, but scripters quickly outgrew it
KC Despres
Werebutterfly
Join date: 7 Apr 2007
Posts: 166
11-24-2007 13:29
I may do that then, two scripts in one prim. First I'll try some of the custom script writers in world. If the script is a little more elegant and contributes a little less to lag, who knows? Maybe I can offer the doors or the whole skybox for sale at some point. Thanks for the suggestions. --KC
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
11-24-2007 20:29
Well, for starters, yeah, u can put 2 scripts in one prim, but in your case, it's not paticularly necissary. When you execute the code to open the door, the function to trigger the sound can be there too. The more scripts a sim has to run, the more overhead on the sim, the more lag created. Everything you need to do can be done within one script.