Battledale_PRC8/_module/nss/fr_iwd_dwf_grd04.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

33 lines
1.2 KiB
Plaintext

void main()
{
object oGuard = GetEnteringObject();
object oGuard2 = GetObjectByTag("fr_iwd_grd_dwf_posted1");
object oGuard3 = GetObjectByTag("fr_iwd_grd_dwf_posted2");
if(GetTag(oGuard) == "fr_iwd_grd_dwf01")
{
int iDice = d10(1);
if(iDice == 1){
AssignCommand(oGuard, SpeakString("Anything new?", TALKVOLUME_TALK));
DelayCommand(2.0, AssignCommand(oGuard2, SpeakString("Nothing to mention.", TALKVOLUME_TALK)));
}
if(iDice == 2){
AssignCommand(oGuard, SpeakString("Hail to thee Gatekeepers!", TALKVOLUME_TALK));
DelayCommand(2.0, AssignCommand(oGuard3, SpeakString("Hail, " + GetName(oGuard), TALKVOLUME_TALK)));
DelayCommand(2.0, AssignCommand(oGuard2, SpeakString("Hail, to thee as well", TALKVOLUME_TALK)));
}
if(iDice == 3){
AssignCommand(oGuard, SpeakString("How goes watch?", TALKVOLUME_TALK));
DelayCommand(2.0, AssignCommand(oGuard2, SpeakString("Nothing unusual.", TALKVOLUME_TALK)));
}
if(iDice == 4){
AssignCommand(oGuard, SpeakString("Keep yer axes sharp!", TALKVOLUME_TALK));
DelayCommand(2.0, AssignCommand(oGuard3, SpeakString("Aye, ya as well lads!", TALKVOLUME_TALK)));
}
else{
}
}
}