HoS_PRC8/_mod/_module/nss/door_failopen.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

18 lines
643 B
Plaintext

// 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
}