I want to make it so you need a key to open a door. So I am using a variable. D will equal 0 when you get the key it will equal 1. So I am trying to make so if d=0 it will go to one place and if d=1 it willgo to another place. I'm not sure how to do this so can somebody please tell me how. Thanx.