That you for answering back. I looked at the site you mentioned and it looked as though if I know anything about what I was doing, it would help, but seeing as that I am a idiot trying to accomplish this, I sorta need a step by step until I get the hang of it. So while searching I found this...
For directional: Make it run script:
If:
Flag is set "Door Unlocked"
Then:
Print "You open the unlocked door and go in."
move player to room "past door(or whatever)"
Else:
run procedure "Key"
Procedure "Key" is:
If:
Player has object "Key"
Then:
Print "The key unlocks the door."
set flag "Door Unlocked" to on.
Else:
print "The door is locked!"
Thanks Jordan...it helped a lot...
...but how do you make the door lockable again...I am just not understanding this stuff.