This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-02-09 17:51:46

Spazta
New Scratcher
Registered: 2013-02-09
Posts: 5

Password Script

Is there a way to make an answer to a question save? I mean like in a password, I'm making an OS, so an answer would be helpful.

Offline

 

#2 2013-02-09 18:00:26

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Password Script

Spazta wrote:

Is there a way to make an answer to a question save?

Do you mean something like encrypting, example PW: abc -> 010203 , or what do you mean?

Offline

 

#3 2013-02-09 18:04:52

Spazta
New Scratcher
Registered: 2013-02-09
Posts: 5

Re: Password Script

Sqervay wrote:

Spazta wrote:

Is there a way to make an answer to a question save?

Do you mean something like encrypting, example PW: abc -> 010203 , or what do you mean?

No, like if you type into an earlier question, but then that answer is the password

Offline

 

#4 2013-02-09 18:15:51

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Password Script

Make a variable which is the password...

Offline

 

#5 2013-02-09 18:21:20

Spazta
New Scratcher
Registered: 2013-02-09
Posts: 5

Re: Password Script

Sqervay wrote:

Make a variable which is the password...

But the user make's the password...
I need that to show up as the password later.

Offline

 

#6 2013-02-09 19:04:00

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Password Script

when gf clicked
ask [define password] and wait
set [password v] to (answer)
whenever you need the password, just use the variable, for example to log in:
when gf clicked
ask [enter password] and wait
if <(answer) = (password)>
login


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#7 2013-02-10 16:19:29

Spazta
New Scratcher
Registered: 2013-02-09
Posts: 5

Re: Password Script

zammer990 wrote:

when gf clicked
ask [define password] and wait
set [password v] to (answer)
whenever you need the password, just use the variable, for example to log in:
when gf clicked
ask [enter password] and wait
if <(answer) = (password)>
login

Thanks, it worked, hopefully my OS can resume production.

Offline

 

#8 2013-02-10 16:51:28

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: Password Script

Spazta wrote:

zammer990 wrote:

when gf clicked
ask [define password] and wait
set [password v] to (answer)
whenever you need the password, just use the variable, for example to log in:
when gf clicked
ask [enter password] and wait
if <(answer) = (password)>
login

Thanks, it worked, hopefully my OS can resume production.

Your online thing is not working.


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

Board footer