Talk:LSL Variables

From Second Life Wiki
Revision as of 15:28, 17 February 2007 by SignpostMarv Martin (talk | contribs) (→‎Stability: response)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Stability

Suppose you have a global variable in a script that runs in an object that is on solid land, that is to say, the object is rezzed onto the land once and then left there for months. Can you then rely on the contents of that variable to remain stable? Will it be affected by (rolling) restarts? Could it be 'reset' to a default value (0, or NULL_KEY) at unpredictable moments?

Variables should keep indefinitely, all you have to worry about is when a sim is rolled back to a previous state. Strife Onizuka 11:06, 17 February 2007 (PST)
If you need to have mission-critical persistance storage, use an external host.
SignpostMarv Martin 14:28, 17 February 2007 (PST)