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.
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
void main()
|
|
{
|
|
object oGuard = GetEnteringObject();
|
|
object oGuard2 = GetObjectByTag("fr_iwd_grd_dwf_posted4");
|
|
object oGuard3 = GetObjectByTag("fr_iwd_grd_dwf_posted5");
|
|
|
|
if(GetTag(oGuard) == "fr_iwd_grd_dwf01")
|
|
{
|
|
int iDice = d10(1);
|
|
|
|
if(iDice == 1){
|
|
AssignCommand(oGuard, SpeakString("All well Gatekeeper?", TALKVOLUME_TALK));
|
|
DelayCommand(2.0, AssignCommand(oGuard2, SpeakString("All well.", TALKVOLUME_TALK)));
|
|
}
|
|
if(iDice == 2){
|
|
AssignCommand(oGuard, SpeakString("Hail to thee!", TALKVOLUME_TALK));
|
|
DelayCommand(2.0, AssignCommand(oGuard3, SpeakString("Hail, " + GetName(oGuard), TALKVOLUME_TALK)));
|
|
}
|
|
if(iDice == 3){
|
|
AssignCommand(oGuard, SpeakString("How goes watch?", TALKVOLUME_TALK));
|
|
DelayCommand(2.0, AssignCommand(oGuard2, SpeakString("As cold as usual lad, I cannot wait for my turn to end.", 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{
|
|
}
|
|
|
|
}
|
|
}
|