Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Multiple script questions.

Kether Dalgleish
Registered User
Join date: 2 May 2006
Posts: 2
05-11-2006 13:45
Hi,

I'm rather new to SL, but I've always loved programming, so I'm exploring the possibilities of LSL :P

The thing is: I'm working with some objects wich need to have more than one script in it. However not all the scripts have to be running at once so, since I don't want to overload the sim, There's only one permanent running script wich turns on and off the others scripts (with llSetScriptState() ) when needed (wich is not frequent, so most of the time there is only the main script running).

Now, my questions are:
-If a script is turned off that way, gets it out of the sim running queue? (I 0ve read Lex Neva's thread about dormant script loading the sims, so I want to be sure).

-When a script is turned off, is it reset? Or when I turn on it again it will remain in the same state, with all the data intact?

-If I do a llResetOtherScript() in a script that is not running, is the reset actually done (so when I turn on that script is reset), or the function silenty fails?

-What's the max limit of objects in a prim inventory? What is the limit of scripts in a prim inventory? What is the limit of RUNNING scripts in a prim? (perhaps all those limits are the same, but perhaps not :P).

-The above limits, are per-prim or per-object? (say I have 2 prims almost reaching the limit, and I link them together... will it work?)
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
05-11-2006 14:22
From: Kether Dalgleish

-If a script is turned off that way, gets it out of the sim running queue? (I 0ve read Lex Neva's thread about dormant script loading the sims, so I want to be sure).

Yes.
From: Kether Dalgleish
When a script is turned off, is it reset? Or when I turn on it again it will remain in the same state, with all the data intact?

No, it will stay in the same state, as if you had manually unselected the "running" tab.
From: Kether Dalgleish
If I do a llResetOtherScript() in a script that is not running, is the reset actually done (so when I turn on that script is reset), or the function silenty fails?

I think so, but you may want to verify this yourself.
From: Kether Dalgleish
What's the max limit of objects in a prim inventory? What is the limit of scripts in a prim inventory? What is the limit of RUNNING scripts in a prim? (perhaps all those limits are the same, but perhaps not :P).

Infinite, but it lags proportially. In SL, limits tend to be how far things can be pushed before something crashes.
From: Kether Dalgleish
The above limits, are per-prim or per-object? (say I have 2 prims almost reaching the limit, and I link them together... will it work?)

Per-prim. There is no limit.