// Script for giving message when fail to open a door
void main()
{
    object oPC=GetLastUsedBy();
    object oMe=OBJECT_SELF;
    string sSay;
    int nN=d4();
    SendMessageToPC(oPC,"** You will not be able to open this door. **");
    if (d4()==1)
    { // project comment
      sSay="Go away!";
      if (nN==2) sSay="I don't want any visitors.";
      else if (nN==3) sSay="I'm trying to rest! Quit pounding on me door!";
      else if (nN==4) sSay="No one is home!  Oops did I just say that?  You're hearing things! Go away.";
      DelayCommand(4.0,AssignCommand(oMe,SpeakString(sSay,TALKVOLUME_WHISPER)));
    } // project comment
}