I need help with how to make passwords and how to call them up. how to make it where you can change your icon to an icon on your computer and how to make stuff happen if you type in a certain word.
I'm thinking the making stuff happen when you type in stuff should be something like
mob
verb
Question()
input("Whats Your Question?")as text
then I dont know what to do or if its right
the password command i think is
mob
verb
Password(P as password)
And thats all i know for password
all i know for the change icon thingy is
mob
verb
ChangeIcon(I as icon)
usr.icon = new I
Now I dont know if any of these are right but I hope i gave you an idea of what im talkin about. If you could help me plz. THX
ID:261568
Jul 15 2002, 1:47 pm
|
|
mob
var
question
verb
Question()
usr.question = input("Whats Your Question?")as text //sets a variable for your question
if(usr.question == "Do i like girls?")//checks if the question is right
usr << "Yes!"//if so, do something
else if(usr.question == "Are you dead sexy?")//by adding else if you can have multiple checks
usr << "YA MAN!"//if so, do something
else
usr << "Sorry i cant answer that!"//if this question isnt an answer then tell them he cant answer it
mob
var
passcode = "PIE!"//set the password
verb
Password(P as password)//ask for a password
if(P == passcode)//IF the password is right tell them
usr << "You got it!"
else//if it isnt then tell them
usr << "Wrong, Try agian!"
mob
verb
Change_Icon_and_Icon_State(I as icon,S as text)//asks for icon and icon state
usr.icon = I//sets usrs icon
usr.icon_state = S//sets usrs icon state
Mrhat signing off!