Posted 02 July 2012 - 10:29 PM
Hello guys, i have followed the wiki tutorial on the password door, and i have the local password variable set with the password i want, everything is great, it works if i boot the computer.
But i want to use a floppy as a key, so, this is the code i have on the floppy's startup
if password == "my password" then
rs.SetOutput("back", true)
sleep(3)
rs.SetOutput("back", false)
else
end
How do i, however, make it so that the floppy's code (one above), can check the hdd's startup code
and get the value of its password variable, and if it matches with the one in the floppy,
the door opens. So i can unlock either with floppy, or without it, using password.
I know i need something above if password == "my password" then, so that it knows where local password is defined..but i dont know how to make it so that it checks the startup on the hdd
I would appreciate help on the subject
thank you in advance :P/>/>
But i want to use a floppy as a key, so, this is the code i have on the floppy's startup
if password == "my password" then
rs.SetOutput("back", true)
sleep(3)
rs.SetOutput("back", false)
else
end
How do i, however, make it so that the floppy's code (one above), can check the hdd's startup code
and get the value of its password variable, and if it matches with the one in the floppy,
the door opens. So i can unlock either with floppy, or without it, using password.
I know i need something above if password == "my password" then, so that it knows where local password is defined..but i dont know how to make it so that it checks the startup on the hdd
I would appreciate help on the subject
thank you in advance :P/>/>