Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

scripting perms question.

Golam Amadeus
Registered User
Join date: 5 Nov 2006
Posts: 23
11-06-2006 12:06
I just finished a house that i might try to sell. Ih has many scripts in it. I want the buyer to be allowed to check/uncheck the RUNNING BOX of the scripts. But i dont want him to be allowed to read or edit the scripts. Is there any combination of permissions that would allow me to do that?

Either that or a way to allow the buyer to set all the scripts running and stop all of them from running too.....(without editing the scripts).....


Thanks
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
11-06-2006 12:50
The nearest thing I can think of is llSetSctiptState(), run from yet another script, that sets the [not]running state of all of the scripts in the house except itself.
_____________________
  1. ninjafoo Ng Says:
    November 4th, 2006 at 7:27 am
    We all love secondlife so much and were afraid that the magic will end, nothing this good can ever last…. can it?

Thanto Usitnov
Lord Byron wannabe
Join date: 4 Aug 2006
Posts: 68
11-06-2006 19:15
llSetScriptState() is, AFAIK, the only thing that can activate or deactive existing scripts. Check out the wiki page on it:
http://lslwiki.com/lslwiki/wakka.php?wakka=llSetScriptState

Important notes: only works on scripts in the prim's inventory, not the whole object. Additionally, scripts can use this to turn themselves off.

With that in mind, you can make a system that takes user input either through an llDialog or maybe a system of switches. In either case, you'd need a script in all prims where you have scripts you want user control over that will either be the switch/listener itself or will take link messages from some other prim (maybe a central server type deal). This really wouldn't be too difficult to code, I think.
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
11-07-2006 09:08
From: Thanto Usitnov
[....]This really wouldn't be too difficult to code, I think.
I agree. There is one significant caviat however. At least one script per affected prim must remain enabled, in order to be able to re-enable the remaining scripts. This can, if not handled properly, cause more lag, instead of less. Specificaly, do not add a seperate script whose only function is to setstate currently-unused scripts. Instead, integrate the function with existing scripts, wherever possible.

Incidentally, this happens to be my 500th post.:)
_____________________
  1. ninjafoo Ng Says:
    November 4th, 2006 at 7:27 am
    We all love secondlife so much and were afraid that the magic will end, nothing this good can ever last…. can it?