Piggie Paule
Registered User
Join date: 22 Jul 2008
Posts: 675
|
09-19-2009 16:38
Bit of an odd question this..........
Say you have a door, and a door script that handles the door movement and access list.
I'm aware some people use a notecard to store names.
But the ones that don't use notecards and "seeminly" magically remember names etc, without the name being in the script or anywhere else.....
Where is this "settings data" held ?
Can it be held in a "string" invisibly within the script and is this data safe?
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
09-19-2009 16:56
From: Piggie Paule But the ones that don't use notecards and "seeminly" magically remember names etc, without the name being in the script or anywhere else.....
Where is this "settings data" held ? They are in the script variables. You can't save data in many other places. But that is not bad: a script that is not reset will keep its data and settings even when it's prim is taken and rezzed or detached and attached. There are a few other possibilities: the object name and the object description do contain data and that goes for all prims in an object
_____________________
From Studio Dora
|
Soen Eber
Registered User
Join date: 3 Aug 2006
Posts: 428
|
09-19-2009 17:13
From: Dora Gustafson They are in the script variables. You can't save data in many other places. But that is not bad: a script that is not reset will keep its data and settings even when it's prim is taken and rezzed or detached and attached.
There are a few other possibilities: the object name and the object description do contain data and that goes for all prims in an object Also the hidden faces of prims can use the color and alpha settings to hold float values, or very short ascii text with appropriate conversion
|
Nuclear Foton
Reductio ad absurdum
Join date: 4 Nov 2006
Posts: 63
|
09-19-2009 17:41
Do the value of variables persist through a region restart?
|
Piggie Paule
Registered User
Join date: 22 Jul 2008
Posts: 675
|
09-19-2009 17:56
Oh thanks.
So once it's rezzed and some data has been input, then as long as you don't reset the script then the data will stay there?
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
09-19-2009 18:13
From: Nuclear Foton Do the value of variables persist through a region restart? Normally, yes. The big exception is if you set a script to "not running", a sim restart will wipe its memory.
|