Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Stays in State?

Ina Centaur
IC
Join date: 31 Oct 2006
Posts: 202
01-19-2007 17:51
If I (owner/creator)
1. rez an object with my own script --- on my own land
2. initialize script into a certain state, say by touching object
3. leave my land

will the script stay in the same state? will it still run if i'm not present?
Edison Swain
Registered User
Join date: 7 Dec 2006
Posts: 51
01-19-2007 20:24
Short answer - yes. This is what it is designed to do.

As long as the object is rezzed in world with an active script, that script will run whether you are around or not.

The state it is running in is meant to persist even when you log off, even when the object is taken into and out of your inventory, and states are even meant to survive sim crashes. Unless the script itself specifically changes the state it is running in, it shouldn't change from any outside action.

(At least, that's my understanding of it - but I'm still relatively new to scripting!)
Ina Centaur
IC
Join date: 31 Oct 2006
Posts: 202
01-20-2007 00:44
From what I've tried, it seems like the script stops once the agent/owner leaves the sim...

But, that might just be my code getting the better of me...
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-20-2007 02:48
From: Ina Centaur
From what I've tried, it seems like the script stops once the agent/owner leaves the sim...

But, that might just be my code getting the better of me...


What precisely are you trying to do? and whats not working?
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
01-20-2007 02:53
Some lsl commands, like terraforming ones, only work when the owner is in the sim, but the script is still working.