Odd problem... in Developer Help
|
|
Code:
obj Computer verb Use_Computer() set src in oview(1) if(!usr.pcuname) usr << "<font color = blue>Welcome to Windows: Space edition! The censors say you do not have an account. Please create one." usr.pcuname = input("Please select an account name.","Pick account.",usr.pcuname) usr << "<font color = blue>Congratulations! Your account name is now [usr].[usr.pcuname]." usr << "<font color = blue>Now you need a password.</font>" switch(alert("Do you want to make a password or set to random?","Password","Make a custom password","Give me a random one")) if("Make a custom password") usr.pcpass = input("Please enter a password.","Pick password.",usr.pcpass) usr.memory+="<font color = blue>Your PC password is '</font><font color = green>[usr.pcpass]'" usr << "<font color = blue>You have set your password and it was added to your memory!" if("Give me a random one") usr.pcpass = rand(151,6243) usr.memory+="<font color = blue>Your PC password is </font>'[usr.pcpass]'" usr << "<font color = blue>You have set your password and it was added to you memory!" else usr << "<font color = blue>The censors say you have an account...Please wait a moment till we find it for you..." sleep(rand(5,50)) usr << "<font color = blue>Your account is [usr].[usr.pcuname]. Please enter your password for added security." usr.pcepass = input("Enter password","Password") if(usr.pcepass==usr.pcpass) usr << "<font color = blue>You have succesfully logged in!" sleep(5) usr << "<font color = blue>Now logging onto the internet. Please wait a moment." usr << browse("Connecting to the internet...","window=connect") sleep(rand(5,40)) usr << browse(null,"window=connect") usr.Internet() else usr << "<font color = red>You made an error while entering your password. Please check you memory and make sure you entered it correctly." usr.pcepass = null icon = 'comp.dmi' icon_state = "comp"
|
Problem description:
Now, when they use the random password thing, if they enter the correct password, it won't work...
|
Good luck with your game!
-KirbyAllStar