Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Saving keycodes?

Brasou Kwasman
Registered User
Join date: 12 May 2008
Posts: 15
06-01-2008 21:48
Hello there! Im planing on opening a store to make some linden(dont expect much, just some spending cash) currently I made a door that opens/closes with the use of a keypad, fairly easy, but one problem iv come across is how to make it so I can allow the buyer to set there own password, without just handing them over the code I made. since currently im just using

string password="1234"; at the start of the script

I made a system that makes it so if you enter the password twice, then enter a different password it sets the password to this new one, but that doesn't help much since the script well reset alot, reseting the password. Any ideas on how I can fix this?
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
06-01-2008 21:59
I know this one! Read it from a notecard :)
_____________________
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
06-02-2008 08:28
Notecard as Day Oh said or encrypt it into the description or some other prim property.
But the real question is WHY will it be resetting a lot?
_____________________
I'm back......
Brasou Kwasman
Registered User
Join date: 12 May 2008
Posts: 15
06-02-2008 17:15
From: Newgate Ludd
Notecard as Day Oh said or encrypt it into the description or some other prim property.
But the real question is WHY will it be resetting a lot?

Well, thats a good question, if a sim goes down do all the varibles on objects get reset? or when it goes back up does it remember the state of everything? I just assumed it would be reset pretty offten, but im guessing this wouldn't be the case?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
06-02-2008 17:42
From: Brasou Kwasman
Well, thats a good question, if a sim goes down do all the varibles on objects get reset? or when it goes back up does it remember the state of everything? I just assumed it would be reset pretty offten, but im guessing this wouldn't be the case?

Generally the state is remembered, but if something really bad happens, they might have to roll a whole sim back to its state at some prior time. That's not the same as a script reset though; it should just forget SOME history (so if you changed the password recently, it might go back to the previous one).

We're in a world without guarantees though.
Brasou Kwasman
Registered User
Join date: 12 May 2008
Posts: 15
06-02-2008 19:45
From: Hewee Zetkin
Generally the state is remembered, but if something really bad happens, they might have to roll a whole sim back to its state at some prior time. That's not the same as a script reset though; it should just forget SOME history (so if you changed the password recently, it might go back to the previous one).

We're in a world without guarantees though.

Oh okay thats nice to know then :D I figured it would reset the password consently thanks guys
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
06-03-2008 09:04
You can also have a second script in the object to be a sort of database. That script should not reset. Have the first script send password info to the second script with link messaging. Then when the main script is reset have it ask the second script for an update on password data.
_____________________